Skip to content

grammarTerms

A static glossary translating the Japanese grammatical terms that UniDic morphology uses (parts of speech, conjugation types and forms, word origins) into short English descriptions, surfaced as tooltips in the grammar breakdown.

Functions

grammarTermEn()

function grammarTermEn(term): string | undefined;

Defined in: src/shared/japanese/grammarTerms.ts:81

Looks up the English description of a Japanese grammatical term. Compound UniDic values (e.g. 五段-マ行 or 助動詞-タ) match on their leading family before the first dash.

Parameters

Parameter Type Description
term string The Japanese grammatical term.

Returns

string | undefined

The English description, if known.