Transform wapuro input into either Katakana or Hiragana.
Add kanabake
to your Cargo.toml
[dependencies]
kanabake = "0.1.0"
Currently the following functionality is available.
to_hiragana(&str) -> Result<String, Error> // Ascii to hiragana
to_katakana(&str) -> Result<String, Error> // Ascii to katakana
is_valid(&str) -> bool // Can input be transformed?
use kanabake;
let example = "konnichiha";
let hiragana = kanabake::to_hiragana(example)?;
assert_eq!(hiragana, "こんにちは");