Function plural

Source
pub fn plural(count: usize, singular: &str) -> String
Expand description

A count and its noun, agreeing: 1 track, 2 tracks, 3 analyses.

The count is included, because a caller that had to write it itself would sooner or later write it twice or not at all. English plurals are not a solved problem and this does not pretend otherwise: the -es endings and analysis/analyses are here because this program says those words, and anything else gets an s.