MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / normalizeProseWord

Function normalizeProseWord

src/search/identifier-segments.ts:56–58  ·  view source on GitHub ↗
(word: string)

Source from the content-addressed store, hash-verified

54 * cross-lingual reach on loanwords.
55 */
56export 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. */

Callers 2

extractProseCandidatesFunction · 0.85

Calls 1

normalizeMethod · 0.80

Tested by

no test coverage detected