A collection of utility for with the Ainu language
ainu-utils is distributed as a Rust crate, but you can also use its binding for Python and Node.js.
| Language | Version |
|---|---|
| Rust | |
| Node.js | |
| Python |
ainu-utils provides several features for working with the Ainu language:
Tokenizes Ainu text into morphemes.
from ainu_utils import tokenize
tokenize("irankarapte. e=iwanke ya?", false);
# => ["irankarapte", ".", "e=", "iwanke", "ya?"]Converts Ainu text written in Latin script to Kana.
from ainu_utils import to_kana
to_kana("irankarapte. e=iwanke ya?");
# => "イランカラㇷ゚テ。 エイワンケ ヤ?"Converts integers between 1 and 100 to Ainu words.
from ainu_utils import number_to_words
number_to_words(91);
# => "sine ikasma wan easiknehotne"Parses Ainu text into syllables.
from ainu_utils import syllabicate
syllabicate("irankarapte. e=iwanke ya?")
# => ["i", "ran", "ka", "rap", "te", ".", " ", "e", "=", "i", "wan", "ke", " ", "ya", "?"]MIT