taipa
Version:
Taiwanese morphological parsing library
78 lines (77 loc) • 2.2 kB
TypeScript
import { Sound, Letters, Character, MatchedSequence } from '../unit';
export declare enum KanaLetterTags {
a = "a",
e = "e",
i = "i",
o = "o",
u = "u",
b = "b",
ch = "ch",
d = "d",
f = "f",
g = "g",
h = "h",
j = "j",
k = "k",
l = "l",
m = "m",
r = "r",
s = "s",
sh = "sh",
v = "v",
z = "z",
p = "p",
t = "t",
ts = "ts",
w = "w",
y = "y",
n = "n",
ng = "ng"
}
export declare class LettersOfKana extends Letters {
handleN(characters: Character[], beginOfLetter: number, listLength: number): MatchedSequence;
}
export declare const lowerLettersKana: LettersOfKana;
export declare enum KanaSpellingTags {
geminatedConsonant = "geminatedConsonant",
initialConsonant = "initialConsonant",
semivowel = "semivowel",
vowel = "vowel",
finalConsonant = "finalConsonant"
}
export declare const initialConsonantsKana: {
sounds: Sound[];
includes(str: string): boolean;
};
export declare const vowelsKana: {
sounds: Sound[];
includes(str: string): boolean;
};
export declare const geminatedConsonantsKana: {
sounds: Sound[];
includes(str: string): boolean;
};
export declare const semivowelsKana: {
sounds: Sound[];
includes(str: string): boolean;
};
export declare const finalConsonantsKana: {
sounds: Sound[];
includes(str: string): boolean;
};
export declare const hatsuonsKana: {
sounds: Sound[];
includes(str: string): boolean;
};
export declare const kanaPositionalSounds: Map<string, (s: KanaSpellingTags) => Sound>;
export declare const kogakimoji: Map<string, string[]>;
export declare const hatsuon: Map<string, string[]>;
export declare const otherKanas: Map<string, string[]>;
export declare const hiraganaKatakana: Map<string, string[]>;
export declare const gairaigo: Map<string, string[]>;
export declare const gairaigoY: Map<string, string[]>;
export declare const gairaigoW: Map<string, string[]>;
export declare const special: Map<string, string[]>;
export declare const specialY: Map<string, string[]>;
export declare const specialW: Map<string, string[]>;
export declare const specialH: Map<string, string[]>;