[][src]Function pluralize_rs::to_singular

pub fn to_singular(word: &str) -> String

Returns a noun's singular form, if it is uncountable, the origin value will be returned

Arguments

  • word - The noun

Examples

use pluralize_rs::to_singular;
assert_eq!(to_singular("words"), "word");