(word: string)
| 54 | * cross-lingual reach on loanwords. |
| 55 | */ |
| 56 | export function normalizeProseWord(word: string): string { |
| 57 | return word.normalize('NFD').replace(/\p{M}+/gu, '').toLowerCase(); |
| 58 | } |
| 59 | |
| 60 | /** Candidate cap: a prompt's first words carry its subject; scanning an essay |
| 61 | * buys nothing and the vocab lookup cost scales with this. */ |
no test coverage detected