to_plural

Function to_plural 

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

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

§Arguments

  • word - The noun

§Examples

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