(word: string)
| 48 | } |
| 49 | |
| 50 | function upperFirstLowerRest(word: string): string { |
| 51 | if (!word) return word; |
| 52 | const lower = word.toLowerCase(); |
| 53 | return lower.slice(0, 1).toUpperCase() + lower.slice(1); |
| 54 | } |
| 55 | |
| 56 | function isAcronym(word: string): boolean { |
| 57 | // Contains letters, includes uppercase, and includes no lowercase. |