Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

aynumosir/ainu-utils

Repository files navigation

ainu-utils

CI codecov

A collection of utility for with the Ainu language

Releases

ainu-utils is distributed as a Rust crate, but you can also use its binding for Python and Node.js.

Language Version
Rust Crates.io Version
Node.js npm Version
Python PyPI Version

Features

ainu-utils provides several features for working with the Ainu language:

tokenize

Tokenizes Ainu text into morphemes.

from ainu_utils import tokenize
tokenize("irankarapte. e=iwanke ya?", false);
# => ["irankarapte", ".", "e=", "iwanke", "ya?"]

to_kana

Converts Ainu text written in Latin script to Kana.

from ainu_utils import to_kana
to_kana("irankarapte. e=iwanke ya?");
# => "イランカラㇷ゚テ。 エイワンケ ヤ?"

number_to_words

Converts integers between 1 and 100 to Ainu words.

from ainu_utils import number_to_words
number_to_words(91);
# => "sine ikasma wan easiknehotne"

syllabicate

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", "?"]

License

MIT

About

Utilities to work with the Ainu language

Topics

Resources

License

Stars

Watchers

Forks

AltStyle によって変換されたページ (->オリジナル) /