scai
Version:
> **AI-powered CLI for local code analysis, commit message suggestions, and natural-language queries.** 100% local, private, GDPR-friendly, made in Denmark/EU with ❤️.
35 lines (34 loc) • 1.88 kB
JavaScript
export const STOP_WORDS = new Set([
// Articles & conjunctions
'a', 'an', 'the', 'and', 'but', 'or', 'nor', 'yet', 'so',
// Prepositions
'at', 'by', 'for', 'from', 'in', 'into', 'of', 'on', 'to', 'with', 'about', 'above',
'below', 'under', 'over', 'through', 'within', 'without', 'across', 'behind', 'near',
// Pronouns
'i', 'me', 'my', 'mine', 'you', 'your', 'yours', 'he', 'him', 'his', 'she', 'her', 'hers',
'it', 'its', 'we', 'us', 'our', 'ours', 'they', 'them', 'their', 'theirs', 'someone', 'something',
// Determiners & quantifiers
'this', 'that', 'these', 'those', 'some', 'any', 'each', 'every', 'either', 'neither',
'few', 'several', 'all', 'many', 'much', 'most', 'more', 'less', 'another',
// Auxiliary and modal verbs
'am', 'is', 'are', 'was', 'were', 'be', 'been', 'being',
'do', 'does', 'did',
'have', 'has', 'had',
'can', 'could', 'shall', 'should', 'will', 'would', 'may', 'might', 'must',
// Wh-words and generic question words
'what', 'which', 'who', 'whom', 'whose', 'where', 'when', 'why', 'how',
// Common verbs (noisy or generic)
'use', 'get', 'set', 'make', 'need', 'want', 'let', 'help', 'work',
'see', 'look', 'like', 'know', 'tell', 'show', 'call', 'create', 'put', 'run',
'start', 'stop', 'begin', 'end', 'open', 'close',
// Functional & filler words
'as', 'if', 'than', 'then', 'there', 'here', 'because', 'so', 'just', 'only',
'not', 'no', 'also', 'again', 'really', 'actually', 'maybe', 'please',
'very', 'too', 'quite', 'rather', 'even', 'still', 'ever', 'never',
'though', 'although', 'indeed', 'perhaps', 'such',
// Command fluff
'explain', 'describe', 'define', 'find', 'give', 'provide', 'show',
'tell', 'check',
// Miscellaneous low-information words
'yes', 'no', 'okay', 'ok', 'thing', 'stuff', 'way', 'anything'
]);