Research
taishi-i/awesome-japanese-nlp-resources
Analyze current trends and challenges in Japanese NLP for a topic.
NLP analysis with perplexity scoring, burstiness, and entropy metrics
$ npx skills add wentorai/research-plugins --skill nlp-toolkit-guide -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install wentorai/research-plugins nlp-toolkit-guide --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/domains/ai-ml/nlp-toolkit-guide .claude/skills/nlp-toolkit-guide && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "nlp-toolkit-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/domains/ai-ml/nlp-toolkit-guide into .claude/skills/nlp-toolkit-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nlp-toolkit-guide", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/wentorai/research-plugins/tree/main/skills/domains/ai-ml/nlp-toolkit-guideType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add wentorai/research-plugins --skill nlp-toolkit-guide -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install wentorai/research-plugins nlp-toolkit-guide --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/domains/ai-ml/nlp-toolkit-guide .agents/skills/nlp-toolkit-guide && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "nlp-toolkit-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/domains/ai-ml/nlp-toolkit-guide into .agents/skills/nlp-toolkit-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nlp-toolkit-guide", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add wentorai/research-plugins --skill nlp-toolkit-guide -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install wentorai/research-plugins nlp-toolkit-guide --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/domains/ai-ml/nlp-toolkit-guide .cursor/skills/nlp-toolkit-guide && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "nlp-toolkit-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/domains/ai-ml/nlp-toolkit-guide into .cursor/skills/nlp-toolkit-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nlp-toolkit-guide", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/wentorai/research-plugins.git --path skills/domains/ai-ml/nlp-toolkit-guide--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add wentorai/research-plugins --skill nlp-toolkit-guide -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install wentorai/research-plugins nlp-toolkit-guide --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/domains/ai-ml/nlp-toolkit-guide .gemini/skills/nlp-toolkit-guide && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "nlp-toolkit-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/domains/ai-ml/nlp-toolkit-guide into .gemini/skills/nlp-toolkit-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nlp-toolkit-guide", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install wentorai/research-plugins nlp-toolkit-guideInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add wentorai/research-plugins --skill nlp-toolkit-guide -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/domains/ai-ml/nlp-toolkit-guide .github/skills/nlp-toolkit-guide && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "nlp-toolkit-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/domains/ai-ml/nlp-toolkit-guide into .github/skills/nlp-toolkit-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nlp-toolkit-guide", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add wentorai/research-plugins --skill nlp-toolkit-guide -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install wentorai/research-plugins nlp-toolkit-guide --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/domains/ai-ml/nlp-toolkit-guide .opencode/skills/nlp-toolkit-guide && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "nlp-toolkit-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/domains/ai-ml/nlp-toolkit-guide into .opencode/skills/nlp-toolkit-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nlp-toolkit-guide", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
nlp-toolkit-guideNLP analysis with perplexity scoring, burstiness, and entropy metrics
NLP Toolkit Guide is an agent skill from wentorai/research-plugins. NLP analysis with perplexity scoring, burstiness, and entropy metrics
Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in AI & LLM Engineering, covering Natural language processing and Web search. It works with Perplexity. The repository describes itself as: 350+ academic research skills, MCP configs, and plugins for Research-Claw and AI agents. The licence is MIT.
Read from SKILL.md and the folder at commit bf44b3c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
huggingface.coarxiv.orgdoi.orgnltk.orgspacy.ioFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
NLP Toolkit Guide loads about 2.3k tokens when it runs. Until then it costs about 22 tokens; SKILL.md has 320 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from wentorai/research-plugins at commit bf44b3c, republished under its MIT licence (© wentorai). 320 words, ~2,330 tokens.
.claude/skills/nlp-toolkit-guide/SKILL.md (or your agent's skills folder).Natural Language Processing research requires a diverse set of analytical tools beyond standard model training. Text quality assessment, AI-generated text detection, linguistic feature extraction, and corpus analysis all depend on well-understood metrics: perplexity, burstiness, entropy, and their variants.
This guide provides practical implementations of these core NLP metrics alongside patterns for tokenization, embedding analysis, and text feature engineering. The focus is on metrics used in active research areas -- AI text detection (perplexity + burstiness classifiers), information-theoretic analysis of corpora, and linguistic diversity measurement.
These tools are framework-agnostic where possible, but leverage Hugging Face Transformers for language model operations and standard Python scientific computing libraries for statistical analysis.
Perplexity measures how well a language model predicts a text. Lower perplexity means the text is more predictable to the model -- a key signal in AI text detection, model evaluation, and domain adaptation.
import torch
import numpy as np
from transformers import AutoModelForCausalLM, AutoTokenizer
def compute_perplexity(text: str, model_name: str = "gpt2") -> dict:
"""
Compute token-level and text-level perplexity using a causal LM.
Returns:
dict with 'perplexity', 'log_likelihood', 'token_perplexities'
"""
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
model.eval()
encodings = tokenizer(text, return_tensors="pt", truncation=True, max_length=1024)
input_ids = encodings.input_ids
with torch.no_grad():
outputs = model(input_ids, labels=input_ids)
neg_log_likelihood = outputs.loss.item()
# Token-level perplexities for analysis
with torch.no_grad():
logits = outputs.logits[:, :-1, :] # Shift for next-token prediction
targets = input_ids[:, 1:]
log_probs = torch.log_softmax(logits, dim=-1)
token_log_probs = log_probs.gather(2, targets.unsqueeze(-1)).squeeze(-1)
token_perplexities = torch.exp(-token_log_probs).squeeze().tolist()
perplexity = np.exp(neg_log_likelihood)
return {
"perplexity": perplexity,
"log_likelihood": -neg_log_likelihood,
"token_perplexities": token_perplexities,
"num_tokens": input_ids.size(1),
}Burstiness measures the tendency of words to appear in clusters rather than uniformly across a text. Human writing tends to be "burstier" -- once a topic is introduced, related terms cluster together, then disappear.
from collections import Counter
import numpy as np
def compute_burstiness(text: str, min_freq: int = 2) -> dict:
"""
Compute burstiness score for a text.
Burstiness B = (sigma - mu) / (sigma + mu)
where sigma and mu are the std dev and mean of inter-arrival times.
B ranges from -1 (periodic) to 1 (bursty). Human text typically B > 0.
"""
words = text.lower().split()
word_positions = {}
for i, word in enumerate(words):
word_positions.setdefault(word, []).append(i)
burstiness_scores = {}
for word, positions in word_positions.items():
if len(positions) < min_freq:
continue
inter_arrivals = np.diff(positions)
mu = np.mean(inter_arrivals)
sigma = np.std(inter_arrivals)
if mu + sigma == 0:
burstiness_scores[word] = 0.0
else:
burstiness_scores[word] = (sigma - mu) / (sigma + mu)
# Aggregate burstiness
if burstiness_scores:
avg_burstiness = np.mean(list(burstiness_scores.values()))
else:
avg_burstiness = 0.0
return {
"average_burstiness": avg_burstiness,
"word_burstiness": burstiness_scores,
"num_words_analyzed": len(burstiness_scores),
}from collections import Counter
import numpy as np
def compute_entropy(text: str, level: str = "word") -> dict:
"""
Compute Shannon entropy at word or character level.
Higher entropy indicates more diverse, less predictable text.
AI-generated text often has lower entropy than human text.
"""
if level == "word":
tokens = text.lower().split()
elif level == "character":
tokens = list(text.lower())
else:
raise ValueError("level must be 'word' or 'character'")
counts = Counter(tokens)
total = sum(counts.values())
probabilities = np.array([c / total for c in counts.values()])
entropy = -np.sum(probabilities * np.log2(probabilities + 1e-12))
max_entropy = np.log2(len(counts)) if len(counts) > 1 else 1.0
normalized_entropy = entropy / max_entropy
return {
"entropy": entropy,
"normalized_entropy": normalized_entropy,
"vocabulary_size": len(counts),
"total_tokens": total,
"type_token_ratio": len(counts) / total,
}
def compute_conditional_entropy(text: str, n: int = 2) -> float:
"""Compute conditional entropy H(X_n | X_{n-1}) for n-gram analysis."""
words = text.lower().split()
if len(words) < n:
return 0.0
ngrams = [tuple(words[i:i+n]) for i in range(len(words) - n + 1)]
contexts = [ng[:-1] for ng in ngrams]
context_counts = Counter(contexts)
ngram_counts = Counter(ngrams)
h = 0.0
total = len(ngrams)
for ngram, count in ngram_counts.items():
context = ngram[:-1]
p_ngram = count / total
p_context = context_counts[context] / total
h -= p_ngram * np.log2(count / context_counts[context] + 1e-12)
return hCombining perplexity, burstiness, and entropy into a detection pipeline:
def analyze_text_authenticity(text: str) -> dict:
"""
Multi-signal analysis for AI vs. human text classification.
Uses perplexity, burstiness, and entropy as features.
"""
perplexity_result = compute_perplexity(text)
burstiness_result = compute_burstiness(text)
entropy_result = compute_entropy(text, level="word")
char_entropy = compute_entropy(text, level="character")
# Heuristic thresholds from literature
signals = {
"low_perplexity": perplexity_result["perplexity"] < 30,
"low_burstiness": burstiness_result["average_burstiness"] < 0.1,
"low_entropy": entropy_result["normalized_entropy"] < 0.7,
"uniform_token_ppl": np.std(perplexity_result["token_perplexities"]) < 5,
}
ai_score = sum(signals.values()) / len(signals)
return {
"perplexity": perplexity_result["perplexity"],
"burstiness": burstiness_result["average_burstiness"],
"word_entropy": entropy_result["entropy"],
"char_entropy": char_entropy["entropy"],
"type_token_ratio": entropy_result["type_token_ratio"],
"ai_likelihood_score": ai_score,
"signals": signals,
}from transformers import AutoTokenizer
def compare_tokenizers(text: str, models: list = None) -> dict:
"""Compare tokenization across different models for research analysis."""
if models is None:
models = ["gpt2", "bert-base-uncased", "facebook/opt-1.3b"]
results = {}
for model_name in models:
tokenizer = AutoTokenizer.from_pretrained(model_name)
tokens = tokenizer.tokenize(text)
results[model_name] = {
"num_tokens": len(tokens),
"tokens": tokens[:50], # First 50 for inspection
"vocab_size": tokenizer.vocab_size,
"compression_ratio": len(text) / len(tokens),
}
return results© wentorai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/domains/ai-ml/nlp-toolkit-guide of wentorai/research-plugins.
Open the folder on GitHubat commit bf44b3c
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in wentorai/research-plugins, which our catalogue first saw on October 7, 2026.
NLP Toolkit Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| NLP Toolkit Guide this skillwentorai/research-plugins | 298 | 1 repos | ~2.3k | Automated safety check: Pass | MIT | |
| Researchtaishi-i/awesome-japanese-nlp-resources | 1k | — | ~3.5k | Automated safety check: Notes | CC0-1.0 | |
| GptqOrchestra-Research/AI-Research-SKILLs | 13k | 2 repos | ~2.9k | Automated safety check: Pass | MIT | |
| Sap AI Coresecondsky/sap-skills | 462 | — | ~3.3k | Automated safety check: Pass | GPL-3.0 | |
| AI RAG PipelineNeverSight/learn-skills.dev | 217 | 1 repos | ~2k | Automated safety check: Pass | None | |
| Quark Torch LLM Evalamd/Quark | 182 | — | ~6.2k | Automated safety check: Pass | MIT |
taishi-i/awesome-japanese-nlp-resources
Analyze current trends and challenges in Japanese NLP for a topic.
Orchestra-Research/AI-Research-SKILLs
Post-training 4-bit quantization for LLMs with minimal accuracy loss.
secondsky/sap-skills
Guides development with SAP AI Core and SAP AI Launchpad for enterprise AI/ML workloads on SAP BTP.
NeverSight/learn-skills.dev
Build RAG (Retrieval Augmented Generation) pipelines with web search and LLMs.
amd/Quark
End-to-end LLM accuracy evaluation on AMD ROCm (ROCm-only) — container setup, vLLM/SGLang/ATOM serving, lm-eval / lighteval / evalscope benchmarks.
davila7/claude-code-templates
Runs web-grounded searches through Perplexity's Sonar models over OpenRouter for current events, recent literature and cited facts beyond the model's training cutoff.
wentorai/research-plugins
Craft structured research abstracts that maximize clarity and journal acceptance
wentorai/research-plugins
Manage academic citations across BibTeX, APA, MLA, and Chicago formats
wentorai/research-plugins
Summarize academic papers with structured extraction of key elements
wentorai/research-plugins
Evidence-based study techniques for academic learning and retention
wentorai/research-plugins
Adjust writing tone and register for academic audiences and venues
wentorai/research-plugins
Academic translation, post-editing, and Chinglish correction guide
Works with
Categories
NLP analysis with perplexity scoring, burstiness, and entropy metrics. NLP Toolkit Guide is an agent skill from wentorai/research-plugins.
NLP Toolkit Guide fits situations like: tasks that involve Natural language processing; tasks that involve Web search.
Run `npx skills add wentorai/research-plugins --skill nlp-toolkit-guide -a claude-code`. Or copy the skill folder (skills/domains/ai-ml/nlp-toolkit-guide in wentorai/research-plugins) into .claude/skills/nlp-toolkit-guide in your project. Claude Code loads it when a task matches its description.
Run `npx skills add wentorai/research-plugins --skill nlp-toolkit-guide -a codex`. Or copy the skill folder (skills/domains/ai-ml/nlp-toolkit-guide in wentorai/research-plugins) into .agents/skills/nlp-toolkit-guide in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wentorai/research-plugins --skill nlp-toolkit-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nlp-toolkit-guide, .gemini/skills/nlp-toolkit-guide, .github/skills/nlp-toolkit-guide and .opencode/skills/nlp-toolkit-guide in your project.
SKILL.md names no scripts, command-line tools or credentials: NLP Toolkit Guide is instructions for the agent only. Our summary lists: Python 3.
SKILL.md names 5 domains. As links in the text: huggingface.co, arxiv.org, doi.org, nltk.org and spacy.io. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
NLP Toolkit Guide is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.3k tokens (SKILL.md is roughly 9.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with NLP Toolkit Guide: Research (taishi-i/awesome-japanese-nlp-resources, 1k stars), Gptq (Orchestra-Research/AI-Research-SKILLs, 13k stars), Sap AI Core (secondsky/sap-skills, 462 stars) and AI RAG Pipeline (NeverSight/learn-skills.dev, 217 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
wentorai (a GitHub user) maintains it in wentorai/research-plugins, which has 298 GitHub stars. The repository holds 405 skills in this directory. The repository was last updated on June 19, 2026.
Source: wentorai/research-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.