ainu-utils 0.5.1

A collection of utilities for the Ainu language
Documentation
pub fn map_c(current: &char, prev: Option<&char>) -> String {
    let value = match &current {
        'k' => "",
        's' => "",
        't' => "",
        'n' => "",
        'p' => "ㇷ゚",
        'm' => "",
        'y' => "",
        'w' => "",
        'r' => match prev {
            Some(prev) => match prev {
                'a' => "",
                'i' => "",
                'u' => "",
                'e' => "",
                'o' => "",
                _ => &*current.to_string(),
            },
            None => &current.to_string(),
        },
        'h' => match prev {
            Some(prev) => match prev {
                'a' => "",
                'i' => "",
                'u' => "",
                'e' => "",
                'o' => "",
                _ => &*current.to_string(),
            },
            None => &current.to_string(),
        },
        _ => &current.to_string(),
    };

    value.to_string()
}