kanabake

Crates.iokanabake
lib.rskanabake
version0.1.0
sourcesrc
created_at2021-07-10 09:56:12.433039
updated_at2021-07-10 09:56:12.433039
descriptionTurn Romaji strings into Hiragana or Katakana
homepage
repositoryhttps://github.com/vkstrm/kanabake
max_upload_size
id421047
size21,161
Viktor Ekström (vkstrm)

documentation

README

kanabake

Transform wapuro input into either Katakana or Hiragana.

Usage

Add kanabake to your Cargo.toml

[dependencies]
kanabake = "0.1.0"

Features

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) -> Result<String, Error>     // Can input be transformed?

Examples

use kanabake;

let example = "konnichiha";
let hiragana = kanabake::to_hiragana(example)?;

assert_eq!(hiragana, "こんにちは");
Commit count: 28

cargo fmt