Claude-skill-registry example-sentences
Requirements for creating and revising example sentences in je-dict-1. Covers minimum counts, progressive length, vocabulary restrictions by tier, and quality standards.
git clone https://github.com/majiayu000/claude-skill-registry
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/example-sentences" ~/.claude/skills/majiayu000-claude-skill-registry-example-sentences && rm -rf "$T"
skills/data/example-sentences/SKILL.mdExample Sentence Guidelines
This skill defines the standards for example sentences across all dictionary entries. All entry-creation and revision activities must follow these guidelines.
Minimum Example Counts by Tier
Basic and Core Tiers
Every sense of every entry in the basic and core tiers must have at least 5 example sentences.
| Tier | Minimum Examples per Sense |
|---|---|
| Basic | 5 |
| Core | 5 |
General Tier
Every sense of every entry in the general tier must have at least 3 example sentences.
| Tier | Minimum Examples per Sense |
|---|---|
| General | 3 |
Multi-sense entries: The requirements apply per sense. An entry with 3 senses in the basic tier needs at least 15 examples total (5 per sense).
Progressive Length Requirement
Examples within each sense should progress from shorter to longer:
- Example 1: Short and simple - demonstrates the word clearly
- Example 2: Slightly longer - shows basic context
- Example 3: Medium length - natural usage with fuller context
- Example 4 (basic/core): Longer sentence with more complex structure
- Example 5 (basic/core): Longest - may consist of 2-3 short sentences or one longer sentence with relative clauses, compound structures, etc.
Key principle: Early examples help learners recognize the word; later examples show how the word functions in natural, flowing Japanese.
Length Guidelines
| Example | Target Length (Japanese) |
|---|---|
| 1 | 5-15 characters |
| 2 | 10-20 characters |
| 3 | 15-30 characters |
| 4 | 25-45 characters |
| 5+ | 35-70 characters (or 2-3 short sentences) |
These are guidelines, not strict rules. Natural expression takes priority over hitting exact character counts.
Vocabulary Restrictions by Tier
Basic Tier Entries
For entries in the basic vocabulary tier:
| Examples | Vocabulary Restriction |
|---|---|
| 1-2 | Basic tier only - Use only words from the basic tier |
| 3-5 | Basic + Core tiers - May use basic and core vocabulary |
Critical: Basic tier examples must contain no general-tier or unlisted vocabulary. This ensures learners at the basic level can fully understand all examples without encountering unknown words.
Core Tier Entries
For entries in the core vocabulary tier:
| Examples | Vocabulary Restriction |
|---|---|
| 1-2 | Basic + Core tiers - Use only basic or core vocabulary |
| 3-5 | No restriction - May use any vocabulary |
Recommendation: Even for unrestricted examples (3-5), avoid vocabulary that is not in the dictionary. Learners should be able to look up any unfamiliar word.
General Tier Entries
For entries in the general vocabulary tier:
| Examples | Vocabulary Restriction |
|---|---|
| 1-3+ | No restriction - May use any vocabulary |
Recommendation: Avoid obscure vocabulary not in the dictionary. Use common, natural expressions that learners are likely to encounter.
Vocabulary Tier Verification
When creating examples for basic and core tier entries, verify vocabulary tier compliance:
# Check if a word is in the dictionary and its tier python3 build/check_duplicate.py "word" "reading"
For systematic verification during polishing:
- Read the example sentence
- Identify all content words (nouns, verbs, adjectives, adverbs)
- Verify each word is in the appropriate tier
- Replace non-compliant words with tier-appropriate alternatives
Common substitution patterns:
| Non-compliant | Basic alternative | Core alternative |
|---|---|---|
| {購入 | こうにゅう}する | {買 |
| {使用 | しよう}する | {使 |
| {非常 | ひじょう}に | とても |
| {困難 | こんなん} | {難 |
Sense Numbers Requirement
Every example must include a
sense_numbers field linking it to the definition(s) it illustrates.
"examples": [ { "id": "00001_word_ex1", "japanese": "...", "english": "...", "sense_numbers": [1], "has_audio": false, "notes": null } ]
Rules
- Single-sense entries: Use
for all examples[1] - Multi-sense entries: Each example must specify which sense(s) it demonstrates
- Examples illustrating multiple senses: Use
format[1, 2] - Must reference valid senses: Numbers must match
values in definitionssense_number
Distribution for Multi-Sense Entries
For entries with multiple senses in basic/core tiers:
- Each sense needs at least 5 examples
- Distribute examples to cover all senses adequately
- Some examples may illustrate multiple senses (use
notation)[1, 2]
Quality Standards
Essential Requirements
- Natural Japanese: Examples should sound like something a native speaker would say
- Clear context: The usage should be understandable from the example
- Complete furigana: All kanji must have
markup{kanji|reading} - Accurate translation: English captures meaning without being overly literal
Content Quality
- First example should be simple - Demonstrate the word clearly without complexity
- Progress to natural complexity - Later examples show real-world usage
- Include fixed phrases - High-frequency collocations aid memory (at least one per sense)
- Show grammatical connections - Demonstrate how words connect with particles, etc.
- Annotate non-obvious grammar - Use
field for explanations when needednotes
What to Demonstrate
Examples should illustrate:
- Common collocations and set phrases
- Typical particle patterns (for verbs)
- Predicate vs. modifier usage (for adjectives)
- Register-appropriate contexts
- Both literal and figurative meanings (if applicable)
Example Format Reference
{ "id": "00396_taberu_ex1", "japanese": "{朝|あさ}ごはんを{食|た}べる。", "english": "To eat breakfast.", "sense_numbers": [1], "has_audio": false, "notes": null }
ID Format
Pattern:
{entry_id}_ex{N}
: The entry's ID (e.g.,entry_id
)00396_taberu
: Sequential number starting from 1N
Fields
| Field | Required | Description |
|---|---|---|
| Yes | Unique example ID |
| Yes | Japanese sentence with furigana |
| Yes | Natural English translation |
| Yes | Array of sense numbers illustrated |
| Yes | Boolean (usually ) |
| Yes | Explanatory note or |
Common Issues to Avoid
- Adding inline links: Do NOT add inline word links (⟦...⟧) when creating or revising examples. Links are added in a separate polishing step via
.prompts/polish_add_inline_links.md - Missing furigana:
instead ofお金が余ったお{金|かね}が{余|あま}った - Overly literal translations: "As for me, I eat sushi" instead of "I eat sushi"
- Wrong sense_numbers: Example linked to wrong definition
- Unnatural constructions: Grammatically correct but rarely used patterns
- Vocabulary tier violations: Using general-tier words in basic-tier examples 1-2
- Insufficient examples: Not meeting minimum counts per sense
- No length progression: All examples being similar length
Polishing Checklist for Examples
When reviewing or revising examples, verify:
Count and Distribution
- Minimum examples per sense met (5 for basic/core, 3 for general)
- All senses have adequate example coverage
- Examples are properly distributed across senses
Progressive Length
- Examples progress from shorter to longer within each sense
- Final examples are substantially longer or multi-sentence
Vocabulary Restrictions
- Basic tier: Examples 1-2 use only basic vocabulary
- Basic tier: Examples 3-5 use only basic+core vocabulary
- Core tier: Examples 1-2 use only basic+core vocabulary
- No unlisted vocabulary in restricted examples
Quality
- All examples sound natural
- All kanji have complete furigana
- Translations are accurate and natural
- sense_numbers are correct for each example
- At least one example shows a common collocation
- Grammar patterns are demonstrated clearly
Format
- IDs follow
pattern{entry_id}_ex{N} - IDs are sequential (ex1, ex2, ex3...)
- All required fields present
-
is accuratehas_audio -
field present (null if not needed)notes
Adding Examples to Existing Entries
When adding examples to bring an entry into compliance:
- Read the existing entry to understand current examples
- Identify gaps: Which senses need more examples? What lengths are missing?
- Check vocabulary tier: Determine what vocabulary can be used
- Write new examples following progressive length guidelines
- Verify compliance with all requirements
- Update
timestamp in metadatamodified
Example Addition Template
For a basic-tier entry with one sense needing 5 examples:
Example 1: [short, basic vocab only] Example 2: [short-medium, basic vocab only] Example 3: [medium, basic+core vocab] Example 4: [medium-long, basic+core vocab] Example 5: [long or multi-sentence, basic+core vocab]
Summary Table
| Tier | Min Examples/Sense | Ex 1-2 Vocab | Ex 3+ Vocab |
|---|---|---|---|
| Basic | 5 | Basic only | Basic + Core |
| Core | 5 | Basic + Core | Any (prefer dictionary words) |
| General | 3 | Any | Any (prefer dictionary words) |