(n: number, singular: string, plural: string)
| 69 | |
| 70 | // Create a string from a number and a word added depending on the plurality of the number (and format the number nicely) |
| 71 | export function pluralFormatNicely(n: number, singular: string, plural: string): string{ |
| 72 | if(n == 1) |
| 73 | return numberToStringButNicely(n) + singular; |
| 74 | return numberToStringButNicely(n) + plural; |
| 75 | } |
| 76 | |
| 77 | // Remove all special characters from a string, only let lower-case letters |
| 78 | export function simplifyString(s: string): string{ |
nothing calls this directly
no test coverage detected