Skip to content

Arabic: default the unvoweled lemma to Form I, not an arbitrary derived form - #155

Merged
v4nn4 merged 1 commit into
mainfrom
rf/arabic-formi-default
Aug 23, 2026
Merged

Arabic: default the unvoweled lemma to Form I, not an arbitrary derived form#155
v4nn4 merged 1 commit into
mainfrom
rf/arabic-formi-default

Conversation

@v4nn4

@v4nn4 v4nn4 commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

UX fix for the Arabic homograph problem. The citation is the unvoweled skeleton, which is ambiguous across the derived forms — كتب is both Form I كَتَبَ ("write") and Form II كَتَّبَ ("make write"). 775 skeletons carry more than one form class (762 include Form I), and the kaikki adapter's arbitrary last-wins dedup resolved many everyday verbs to the derived reading:

skeleton before after
كتب كَتَّبَ (make write) كَتَبَ (write)
ذهب ذَهَّبَ (gild) ذَهَبَ (go)
درس دَرَّسَ (teach) دَرَسَ (study)
فتح فَتَّحَ فَتَحَ (open)

The adapter now keeps the lowest form class per cell (Form I over II over III…) using Wiktionary's own form-i/form-ii tags. parts.tsv + the mined overrides are regenerated against the Form-I-preferred gold.

Golden gate still passes 100% (47456/47456 forms, 632/632 lemmas — the gold shifts slightly as some homograph agreements move to Form I). 24 ara tests, clippy, fmt all green.

Trade-off: the rarer derived reading is no longer reachable from the bare skeleton. Voweled input to disambiguate is a possible follow-up. A web PR rebuilds the vendored wasm and refreshes the Arabic sample verbs (كتب/درس/ذهب are now correct).

🤖 Generated with Claude Code

…ed form

The Arabic citation is the unvoweled consonantal skeleton, which is a homograph
across the derived forms — كتب is both Form I كَتَبَ ("write") and Form II كَتَّبَ
("make write"). 775 skeletons carry more than one form class (762 include Form
I), and the kaikki adapter's arbitrary last-wins dedup was resolving many common
verbs to the derived reading: a user typing كتب, ذهب, درس, فتح got kattaba,
dhahhaba, darrasa, fattaha instead of the everyday verb.

The adapter now keeps the LOWEST form class per cell (Form I over II over III…),
using Wiktionary's own form-i/form-ii tags, so the default conjugation is the
basic verb. parts.tsv and the mined overrides are regenerated against the
Form-I-preferred gold; the golden gate still passes 100% (47456/47456 forms,
632/632 lemmas — the gold shifts slightly as some homograph agreements move to
Form I). The rarer derived reading is no longer reachable from the bare
skeleton; voweled input to disambiguate is a possible follow-up.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@v4nn4
v4nn4 merged commit a63444c into main Aug 23, 2026
2 checks passed
@v4nn4
v4nn4 deleted the rf/arabic-formi-default branch August 23, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant