| name | inline-word-links |
| description | Guidelines for adding inline cross-reference links to example sentences and notes. Includes common word reference table. |
Inline Word Links
This skill covers how to add cross-reference links within example sentences and notes. These links allow users to click on any word in an example to navigate to its dictionary entry.
Coverage policy
Comprehensive polish (prompts/comprehensive_polish.md) requires full inline link coverage on every Japanese word in both example sentences AND the notes field, with noentry markers for words that lack entries. The rules below apply equally to Japanese text wherever it appears in an entry โ there is no "examples only" carve-out anymore. The headword itself is not self-linked.
Link Format
The link format uses special Unicode delimiters:
โฆ{surface|reading}โbaseform๏ผentry_idโง
Components:
โฆ (U+27E6) - Opening bracket
surface - The word as it appears in the sentence (may include furigana notation)
โ (U+2192) - Arrow separator
baseform - The dictionary form of the word (for tooltip display)
๏ผ (U+FF1A) - Fullwidth colon separator
entry_id - The dictionary entry ID (e.g., 00111_hon)
โง (U+27E7) - Closing bracket
CRITICAL: Semantic Verification
Links MUST be verified semantically, not programmatically.
Before adding any link, you MUST:
- Understand the word's role in the sentence
- Confirm the correct meaning - many words are homographs with different entries
- Identify correct word boundaries - particles attach to words differently
- Match to the correct entry - verify the gloss matches the intended meaning
Common Semantic Errors to Avoid
| Error Type | Example | Problem |
|---|
| Wrong homograph | ใฎ โ ้ (field) | ใฎ in most contexts is the particle, not the noun ้ |
| Wrong word boundary | ใใฎใงใ โ ใใฎ + ใงใ | May need to link as a single grammatical pattern |
| Conjugated form mismatch | ้ฃในใพใใ โ ้ฃในใ | Correct, but verify the verb is the intended one |
| Compound splitting | ๆฅๆฌ่ช โ ๆฅๆฌ + ่ช | Should link as single compound if entry exists |
Verification Process
For each word you intend to link:
- Read the full sentence to understand context
- Identify the word's grammatical function
- Look up the entry ID (use reference table below for common words)
- Verify the entry's gloss matches the word's meaning in context
- Only then add the link markup
Link Guidelines
DO Link (every Japanese word in examples and notes):
- Content words: nouns, verbs, adjectives, adverbs
- Particles that have entries (ใฏ, ใ, ใ, ใซ, ใง, ใจ, ใใ, ใพใง, ใฎ, ใธ, ใ, ใญ, etc.)
- Demonstratives, pronouns, connectives
- Conjugated forms โ link to the dictionary form
- Counter words attached to numerals
- Japanese phrases inside the notes field โ collocations, related forms, fixed expressions, contrast pairs all get the same treatment as example sentences
DO NOT Link:
- The headword of the entry in its own examples or notes (no self-reference)
- Punctuation marks (ใใ๏ผ๏ผใใใใโฆ)
- Pattern placeholders (
ใ, โฆ) โ but the surrounding Japanese in a pattern like ใใซๅฏพใใฆ should be linked
- Names unless they have entries
- Arabic numerals (link the attached counter, not the digit)
For words that should be linked but lack an entry, use noentry (see below) and add the word to candidate_words.json with a note like "seen in entry XXXXX".
Using noentry
For words without dictionary entries:
โฆ{็้ |ใใใใใ}โ็้ ๏ผnoentryโง
This preserves the markup for future linking but renders as plain text.
Always pair noentry with a candidate: when you mark a word noentry, also add it to candidate_words.json so the new-entry workflow can pick it up:
python3 build/manage_candidates.py add "็้ " "ใใใใใ" "vigorous (despite age); seen in entry XXXXX"
This is what closes the dictionary in on itself: words that already appear get prioritized for entry creation.
Examples
Basic Example
Original:
"japanese": "{ๆฌ|ใปใ}ใ{่ชญ|ใ}ใใ"
With links:
"japanese": "โฆ{ๆฌ|ใปใ}โๆฌ๏ผ00111_honโงโฆใโใ๏ผ00422_woโงโฆ{่ชญ|ใ}ใโ่ชญใ๏ผ00426_yomuโงใ"
Example with Particles
Original:
"japanese": "{็ง|ใใใ}ใฏ{ๆฅๆฌ่ช|ใซใปใใ}ใ{ๅ|ใ}ใใใพใใ"
With links:
"japanese": "โฆ{็ง|ใใใ}โ็ง๏ผ02988_watashiโงโฆใฏโใฏ๏ผ00079_haโงโฆ{ๆฅๆฌ่ช|ใซใปใใ}โๆฅๆฌ่ช๏ผ00614_nihongoโงโฆใโใ๏ผ00051_gaโงโฆ{ๅ|ใ}ใใใพใโๅใใ๏ผ00463_wakaruโงใ"
Example with Conjugation
Original:
"japanese": "{ๅฝผ|ใใ}ใฏ{ๆฅ|ใ}ใพใใใงใใใ"
With links (note: conjugated forms link to dictionary form):
"japanese": "โฆ{ๅฝผ|ใใ}โๅฝผ๏ผ01292_kareโงโฆใฏโใฏ๏ผ00079_haโงโฆ{ๆฅ|ใ}ใพใใใงใใโๆฅใ๏ผ00254_kuruโงใ"
Common Words Reference Table
Use this table for quick reference. For words not listed, search the dictionary.
Particles
| Entry ID | Word | Reading | Gloss |
|---|
| 00051_ga | ใ | ใ | subject marker |
| 00079_ha | ใฏ | ใฏ | topic marker |
| 00314_ni | ใซ | ใซ | location/direction/time marker |
| 00422_wo | ใ | ใ | direct object marker |
| 00484_mo | ใ | ใ | also, too, even |
| 00490_made | ใพใง | ใพใง | until, to, as far as |
| 00502_de | ใง | ใง | at, by, with (location/means) |
| 00504_kara | ใใ | ใใ | from, because |
| 00512_to | ใจ | ใจ | and, with, quotation |
| 02473_he | ใธ | ใธ | direction marker (toward) |
| 09472_no | ใฎ | ใฎ | possessive marker, nominalizer |
| 09473_ka | ใ | ใ | question marker, or |
| 09474_ne | ใญ | ใญ | confirmation particle |
| 09475_yo | ใ | ใ | emphasis particle |
| 09476_yori | ใใ | ใใ | than, from (comparison) |
| 09477_kedo | ใใฉ | ใใฉ | but, although |
Pronouns and Demonstratives
| Entry ID | Word | Reading | Gloss |
|---|
| 00534_dare | ่ชฐ | ใ ใ | who |
| 00536_itsu | ใใค | ใใค | when |
| 00539_doko | ใฉใ | ใฉใ | where |
| 00543_dou | ใฉใ | ใฉใ | how, in what way |
| 00547_dore | ใฉใ | ใฉใ | which one |
| 00551_dono | ใฉใฎ | ใฉใฎ | which (+ noun) |
| 00498_nani | ไฝ | ใชใซ | what |
| 02988_watashi | ็ง | ใใใ | I, me |
| 00915_ano | ใใฎ | ใใฎ | that (over there) |
| 00919_asoko | ใใใ | ใใใ | over there |
| 00961_koko | ใใ | ใใ | here |
| 00962_kono | ใใฎ | ใใฎ | this |
| 00991_soko | ใใ | ใใ | there |
| 00993_sono | ใใฎ | ใใฎ | that |
| 00994_sore | ใใ | ใใ | that (thing) |
| 01292_kare | ๅฝผ | ใใ | he, him |
| 01286_kanojo | ๅฝผๅฅณ | ใใฎใใ | she, her |
Common Verbs
| Entry ID | Word | Reading | Gloss |
|---|
| 00006_aru | ใใ | ใใ | to exist (inanimate) |
| 00119_iku | ่กใ | ใใ | to go |
| 00254_kuru | ๆฅใ | ใใ | to come |
| 00283_miru | ่ฆใ | ใฟใ | to see, look, watch |
| 00322_nomu | ้ฃฒใ | ใฎใ | to drink |
| 00392_suru | ใใ | ใใ | to do, to make |
| 00396_taberu | ้ฃในใ | ใในใ | to eat |
| 00426_yomu | ่ชญใ | ใใ | to read |
| 00458_shiru | ็ฅใ | ใใ | to know, to learn |
| 00463_wakaru | ๅใใ | ใใใ | to understand |
| 00467_hanasu | ่ฉฑใ | ใฏใชใ | to speak, talk |
| 00469_matsu | ๅพ
ใค | ใพใค | to wait |
| 00470_neru | ๅฏใ | ใญใ | to sleep |
| 00473_tsukau | ไฝฟใ | ใคใใ | to use |
| 00474_wasureru | ๅฟใใ | ใใใใ | to forget |
| 00477_kaku | ๆธใ | ใใ | to write |
| 00478_motsu | ๆใค | ใใค | to hold, have |
| 00481_tsukuru | ไฝใ | ใคใใ | to make, create |
| 00482_au | ไผใ | ใใ | to meet |
| 00483_kiku | ่ใ | ใใ | to hear, listen, ask |
| 00489_kau | ่ฒทใ | ใใ | to buy |
| 00492_omou | ๆใ | ใใใ | to think, feel |
| 00494_hairu | ๅ
ฅใ | ใฏใใ | to enter |
| 00495_iru | ใใ | ใใ | to exist (animate) |
| 00503_hataraku | ๅใ | ใฏใใใ | to work |
| 00508_kaeru | ๅธฐใ | ใใใ | to return home |
| 00511_noru | ไนใ | ใฎใ | to ride, get on |
| 00513_deru | ๅบใ | ใงใ | to go out, leave |
| 00515_iu | ่จใ | ใใ | to say, tell |
| 00519_hashiru | ่ตฐใ | ใฏใใ | to run |
| 00520_morau | ใใใ | ใใใ | to receive |
| 00521_okiru | ่ตทใใ | ใใใ | to wake up |
| 00526_oshieru | ๆใใ | ใใใใ | to teach |
| 00527_benkyousuru | ๅๅผทใใ | ในใใใใใใ | to study |
| 00531_hajimeru | ๅงใใ | ใฏใใใ | to begin |
| 00538_aruku | ๆญฉใ | ใใใ | to walk |
| 00546_ageru | ใใใ | ใใใ | to give, raise |
| 00550_asobu | ้ใถ | ใใใถ | to play |
| 00557_dekiru | ใงใใ | ใงใใ | to be able to |
| 00567_owaru | ็ตใใ | ใใใ | to end |
| 01970_naru | ใชใ | ใชใ | to become |
Common Adjectives
| Entry ID | Word | Reading | Gloss |
|---|
| 00025_chiisai | ๅฐใใ | ใกใใใ | small, little |
| 00118_ii | ใใ | ใใ | good, fine |
| 00335_ookii | ๅคงใใ | ใใใใ | big, large |
| 00464_yasui | ๅฎใ | ใใใ | cheap |
| 00488_furui | ๅคใ | ใตใใ | old |
| 00491_nagai | ้ทใ | ใชใใ | long |
| 00500_takai | ้ซใ | ใใใ | high, expensive |
| 00506_atarashii | ๆฐใใ | ใใใใใ | new |
| 00510_mijikai | ็ญใ | ใฟใใใ | short |
| 00514_hayai | ้ใ/ๆฉใ | ใฏใใ | fast, early |
| 00517_muzukashii | ้ฃใใ | ใใใใใ | difficult |
| 00529_tooi | ้ ใ | ใจใใ | far |
| 00530_chikai | ่ฟใ | ใกใใ | near |
| 00533_osoi | ้
ใ | ใใใ | slow, late |
| 00585_akai | ่ตคใ | ใใใ | red |
| 00586_aoi | ้ใ | ใใใ | blue |
| 00587_shiroi | ็ฝใ | ใใใ | white |
| 00588_kuroi | ้ปใ | ใใใ | black |
| 00589_omoshiroi | ้ข็ฝใ | ใใใใใ | interesting |
| 00591_isogashii | ๅฟใใ | ใใใใใ | busy |
| 01107_hoshii | ๆฌฒใใ | ใปใใ | wanted, desired |
| 01118_nai | ใชใ | ใชใ | nonexistent |
Common Nouns
| Entry ID | Word | Reading | Gloss |
|---|
| 00111_hon | ๆฌ | ใปใ | book |
| 00468_jikan | ๆ้ | ใใใ | time, hour |
| 00476_hito | ไบบ | ใฒใจ | person |
| 00480_shigoto | ไปไบ | ใใใจ | work, job |
| 00486_toshi | ๅนด | ใจใ | year, age |
| 00487_yoru | ๅค | ใใ | night |
| 00496_kyou | ไปๆฅ | ใใใ | today |
| 00497_mise | ๅบ | ใฟใ | store, shop |
| 00499_sakana | ้ญ | ใใใช | fish |
| 00501_ashita | ๆๆฅ | ใใใ | tomorrow |
| 00505_michi | ้ | ใฟใก | road, way |
| 00507_heya | ้จๅฑ | ใธใ | room |
| 00516_kuruma | ่ป | ใใใพ | car |
| 00522_densha | ้ป่ป | ใงใใใ | train |
| 00523_hana | ่ฑ | ใฏใช | flower |
| 00524_ki | ๆจ | ใ | tree |
| 00525_me | ็ฎ | ใ | eye |
| 00558_kao | ้ก | ใใ | face |
| 00560_kuchi | ๅฃ | ใใก | mouth |
| 00569_te | ๆ | ใฆ | hand |
| 00574_atama | ้ ญ | ใใใพ | head |
| 00575_ashi | ่ถณ | ใใ | foot, leg |
| 00576_ocha | ใ่ถ | ใใกใ | tea |
| 00577_byouin | ็
้ข | ใณใใใใ | hospital |
| 00578_ginkou | ้่ก | ใใใใ | bank |
| 00580_toshokan | ๅณๆธ้คจ | ใจใใใใ | library |
| 00581_kouen | ๅ
ฌๅ | ใใใใ | park |
| 00582_tenki | ๅคฉๆฐ | ใฆใใ | weather |
| 00583_ame | ้จ | ใใ | rain |
| 00607_kaisha | ไผ็คพ | ใใใใ | company |
| 00608_daigaku | ๅคงๅญฆ | ใ ใใใ | university |
| 00609_sensei | ๅ
็ | ใใใใ | teacher |
| 00610_gakusei | ๅญฆ็ | ใใใใ | student |
| 00611_okane | ใ้ | ใใใญ | money |
| 00612_ie | ๅฎถ | ใใ | house, home |
| 00614_nihongo | ๆฅๆฌ่ช | ใซใปใใ | Japanese language |
| 00682_ue | ไธ | ใใ | above, up |
| 00670_shita | ไธ | ใใ | below, down |
| 00710_kaigi | ไผ่ญฐ | ใใใ | meeting |
| 00762_tsukue | ๆบ | ใคใใ | desk |
| 00888_shitsumon | ่ณชๅ | ใใคใใ | question |
| 02180_eki | ้ง
| ใใ | station |
Common Adverbs
| Entry ID | Word | Reading | Gloss |
|---|
| 00593_totemo | ใจใฆใ | ใจใฆใ | very |
| 00595_chotto | ใกใใฃใจ | ใกใใฃใจ | a little |
| 00596_sukoshi | ๅฐใ | ใใใ | a little, few |
| 00597_takusan | ใใใใ | ใใใใ | a lot, many |
| 00598_zenzen | ๅ
จ็ถ | ใใใใ | not at all |
| 00599_itsumo | ใใคใ | ใใคใ | always |
| 00600_tokidoki | ๆใ
| ใจใใฉใ | sometimes |
| 00601_yoku | ใใ | ใใ | often, well |
| 00602_mou | ใใ | ใใ | already |
| 00603_mada | ใพใ | ใพใ | still, not yet |
| 00604_amari | ใใพใ | ใใพใ | not very |
| 00814_sugu | ใใ | ใใ | immediately |
| 00881_saikin | ๆ่ฟ | ใใใใ | recently, lately |
| 01284_moshi | ใใ | ใใ | if, in case |
Additional Common Words
These are frequently encountered words not in the categories above:
| Entry ID | Word | Reading | Gloss |
|---|
| 00164_kamoshirenai | ใใใใใชใ | ใใใใใชใ | might, perhaps |
| 00554_kodomo | ๅญไพ | ใใฉใ | child |
| 00673_sumu | ไฝใ | ใใ | to live, reside |
| 00755_shizuka | ้ใ | ใใใ | quiet, calm |
| 00791_kowareru | ๅฃใใ | ใใใใ | to break |
| 00823_wakai | ่ฅใ | ใใใ | young |
| 00846_hitsuyou | ๅฟ
่ฆ | ใฒใคใใ | necessary |
| 01098_ireru | ๅ
ฅใใ | ใใใ | to put in |
| 01127_ooi | ๅคใ | ใใใ | many, much |
| 01137_tokoro | ใจใใ | ใจใใ | place, point |
| 01165_mieru | ่ฆใใ | ใฟใใ | to be visible |
| 01179_keiken | ็ต้จ | ใใใใ | experience |
| 01430_juusho | ไฝๆ | ใใ
ใใใ | address |
| 01458_tatemono | ๅปบ็ฉ | ใใฆใใฎ | building |
| 01636_shippai | ๅคฑๆ | ใใฃใฑใ | failure |
| 01932_kiku | ๅนใ | ใใ | to be effective |
| 01970_naru | ใชใ | ใชใ | to become |
| 02355_suki | ๅฅฝใ | ใใ | like, fond of |
| 02444_hiku | ๅผพใ | ใฒใ | to play (instrument) |
| 02514_kekkon | ็ตๅฉ | ใใฃใใ | marriage |
| 02848_issho | ไธ็ท | ใใฃใใ | together |
| 02899_kudasai | ใใ ใใ | ใใ ใใ | please (do) |
| 03036_machigau | ้้ใ | ใพใกใใ | to make a mistake |
| 03093_dake | ใ ใ | ใ ใ | only, just |
| 03290_seichou | ๆ้ท | ใใใกใใ | growth |
| 03823_senshu | ้ธๆ | ใใใใ
| player, athlete |
Conjunctions
| Entry ID | Word | Reading | Gloss |
|---|
| 00031_daga | ใ ใ | ใ ใ | but, however |
| 00033_dakedo | ใ ใใฉ | ใ ใใฉ | but, however |
| 00379_sokode | ใใใง | ใใใง | so, therefore |
| 00382_soredemo | ใใใงใ | ใใใงใ | but still |
Word-ID Lookup Table
A pre-built lookup table is available at build/word_id_lookup.json for fast wordโID resolution. It is regenerated automatically by make index (via update_indexes.py).
The table has two indexes:
by_reading โ maps hiragana readings to entries (primary lookup method)
by_headword โ maps kanji/surface forms to entries
Each match includes id, headword/reading, gloss, and tier for disambiguation. For homophones (e.g., ใใ โ ่ใ/ๅนใ), check the gloss to select the correct entry.
python3 -c "
import json
with open('build/word_id_lookup.json') as f:
data = json.load(f)
for e in data['by_reading'].get('ใใ', []):
print(f\"{e['id']}: {e['headword']} - {e['gloss']}\")
"
Workflow for Adding Links
- Read the sentence - Understand the full meaning
- Identify each word - Note word boundaries carefully
- Look up entry IDs - Use lookup table or reference table below
- Verify semantically - Confirm each link matches intended meaning
- Add markup - Apply the link format carefully
- Validate immediately - Run validation to catch ID errors early:
python3 build/validate.py 2>&1 | grep -A5 "Word link"
- Review - Read through the linked sentence to verify
Tracking noentry Words
When you mark a word with noentry, consider tracking it for potential future entry creation. In your session log, include:
### Words marked noentry (candidates for future entries)
- ใฉใณใใผ (runner)
- ใปใผใ (safe - sports)
- ไธ็ฎ (district number)
This helps identify gaps in the dictionary that may need filling.
Quality Checklist
Before finalizing links: