security/codeql-dependabot-gitleaks
| 1 | import pluralizeEN from "pluralize" |
| 2 | pluralizeEN.addUncountableRule("info") |
| 3 | /** |
| 4 | * Function to pluralize English words. |
| 5 | * @param word |
| 6 | */ |
| 7 | export function pluralize(word: string): string { |
| 8 | // TODO: Implement language specific pluralize function |
| 9 | return pluralizeEN(word) |
| 10 | } |
| 11 | |
| 12 | export function singularize(word: string): string { |
| 13 | return pluralizeEN.singular(word) |
| 14 | } |