Files
vercel__vercel-plugin/hooks/shared-contractions.mjs
John Lindquist 905ffba7fa feat: add lexical stemmer, prompt signal scoring, docs, and plugin metadata
- Add stemmer and shared contractions modules for lexical prompt matching
- Enhance lexical index and prompt patterns with stemming support
- Add promptSignals metadata to all 43 skill frontmatter files
- Add comprehensive documentation site (docs/)
- Add .claude-plugin marketplace and plugin metadata
- Add benchmark scenarios script
- Update skill manifest with prompt signal data
- Add lexical-index and stemmer tests, expand prompt-patterns tests
2026-03-10 03:24:38 -06:00

67 lines
1.4 KiB
JavaScript

const CONTRACTIONS = {
// apostrophe forms
"it's": "it is",
"what's": "what is",
"where's": "where is",
"that's": "that is",
"there's": "there is",
"who's": "who is",
"how's": "how is",
"i'm": "i am",
"isn't": "is not",
"aren't": "are not",
"wasn't": "was not",
"weren't": "were not",
"doesn't": "does not",
"don't": "do not",
"didn't": "did not",
"won't": "will not",
"can't": "cannot",
"couldn't": "could not",
"wouldn't": "would not",
"shouldn't": "should not",
"hasn't": "has not",
"haven't": "have not",
"you're": "you are",
"we're": "we are",
"they're": "they are",
"it'll": "it will",
"i've": "i have",
"you've": "you have",
"we've": "we have",
"they've": "they have",
"they'll": "they will",
"who'll": "who will",
"let's": "let us",
// apostrophe-free variants (casual typing)
im: "i am",
isnt: "is not",
arent: "are not",
wasnt: "was not",
werent: "were not",
doesnt: "does not",
dont: "do not",
didnt: "did not",
wont: "will not",
cant: "cannot",
couldnt: "could not",
wouldnt: "would not",
shouldnt: "should not",
hasnt: "has not",
havent: "have not",
youre: "you are",
were: "we are",
theyre: "they are",
itll: "it will",
ive: "i have",
youve: "you have",
weve: "we have",
theyve: "they have",
theyll: "they will",
wholl: "who will",
lets: "let us"
};
export {
CONTRACTIONS
};