to_singular

Function to_singular 

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

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");