* Step 5b: Remove trailing 'll' if measure > 1
(word: string)
| 280 | * Step 5b: Remove trailing 'll' if measure > 1 |
| 281 | */ |
| 282 | function step5b(word: string): string { |
| 283 | if (word.endsWith("ll") && hasMeasureGreaterThan1(word.slice(0, -1))) { |
| 284 | return word.slice(0, -1); |
| 285 | } |
| 286 | return word; |
| 287 | } |
| 288 | |
| 289 | /** |
| 290 | * Stem a word using the Porter stemming algorithm. |
no test coverage detected