Duplicated from huggingface/inference-playground
7450ebd
1
2
3
4
5
6
7
export function pluralize(word: string, count: number): string { if (count === 1) { return word; } return word + "s"; }