export const STOPWORDS = [ '0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' , 'a' , 'A' , 'A.D.' , 'A.E.' , 'a.k.a.' , 'a.m.' , 'A.M.' , 'about' , 'above' , 'across' , 'add-in' , 'add-on' , 'after' , 'again' , 'against' , "ain't" , 'all' , 'all-around' , 'all-or-nothing' , 'all-out' , 'almost' , 'alone' , 'along' , "al-Qur'an" , 'already' , 'also' , 'although' , 'always' , 'am' , 'Am' , 'AM' , 'among' , 'an' , 'AN' , 'and' , 'and/or' , 'another' , 'any' , 'anyone' , 'anything' , 'anywhere' , 'A-one' , 'are' , "aren't" , 'around' , 'as' , 'As' , 'AS' , 'at' , 'At' , 'b' , 'B' , 'back' , 'back-to-back' , "Baha'i" , 'balls-up' , 'bang-up' , 'be' , 'Be' , 'beaten-up' , 'beat-up' , 'became' , 'because' , 'become' , 'becomes' , 'beefed-up' , 'been' , 'before' , 'behind' , 'being' , 'belly-up' , 'below' , 'between' , 'bicycle-built-for-two' , 'bit' , 'bits' , 'blown-up' , 'booze-up' , 'born-again' , 'both' , 'bottom-up' , 'boxed-in' , 'break-in' , 'bride-to-be' , 'broken-down' , 'brush-off' , 'built-in' , 'built-up' , 'bundled-up' , 'burned-out' , 'burned-over' , 'burnt-out' , 'bust-up' , 'but' , 'button-down' , 'buttoned-down' , 'buttoned-up' , 'by' , 'by-and-by' , 'c' , 'C' , 'call-back' , 'caller-out' , 'caller-up' , 'call-in' , 'call-out' , 'camp-made' , 'can' , 'can-do' , 'cannot' , "can't" , 'cared-for' , 'carry-over' , 'cast-off' , 'change-up' , 'check-in' , "ch'i" , "Ch'in" , 'chin-up' , 'chock-full' , 'choke-full' , 'chucker-out' , 'chuck-full' , 'churned-up' , 'climb-down' , 'clip-on' , 'coach-and-four' , 'comb-out' , 'come-on' , 'could' , "couldn't" , 'cover-up' , 'crack-up' , 'cure-all' , 'custom-made' , 'cut-in' , 'cut-up' , 'cuz' , 'd' , 'D' , 'D.A.' , 'd.o.a.' , 'dead-on' , 'derring-do' , 'did' , "didn't" , 'do' , 'DO' , 'does' , "doesn't" , 'doing' , 'do-it-yourself' , 'done' , 'do-nothing' , "don't" , 'do-si-do' , 'down' , 'Down' , 'down-and-out' , 'drawn-out' , 'dressed-up' , 'dried-out' , 'dried-up' , 'drive-in' , 'drop-off' , 'during' , 'e' , 'E' , 'each' , 'eighty-four' , 'eighty-one' , 'eighty-three' , 'eighty-two' , 'either' , 'end' , 'end-all' , 'enough' , 'even' , 'ever' , 'every' , 'everyone' , 'everything' , 'everywhere' , 'eyes-only' , 'f' , 'F' , 'F.I.S.C.' , 'face-off' , 'factory-made' , 'fare-thee-well' , 'far-off' , 'far-out' , 'few' , 'fifty-four' , 'fifty-one' , 'fifty-three' , 'fifty-two' , 'fill-in' , 'find' , 'first' , 'flame-out' , 'flare-up' , 'fly-by' , 'follow-on' , 'follow-through' , 'follow-up' , 'for' , 'force-out' , 'fore-and-after' , 'forget-me-not' , 'form-only' , 'forty-first' , 'forty-four' , 'forty-one' , 'forty-three' , 'forty-two' , 'foul-up' , 'four' , 'frame-up' , 'free-for-all' , 'from' , 'fucked-up' , 'full' , 'further' , 'g' , 'G' , 'G.I.' , 'get' , 'get-go' , 'get-up-and-go' , 'gill-less' , 'give' , 'give-and-go' , 'give-and-take' , 'go' , 'go-around' , 'go-between' , 'going' , 'going-over' , 'good-by' , 'good-for-nothing' , 'goof-off' , 'groom-to-be' , 'h' , 'H' , 'had' , "hadn't" , 'half-seas-over' , 'hand-down' , 'handed-down' , 'hand-me-down' , 'hands-down' , 'hands-off' , 'hands-on' , 'hanger-on' , 'hang-up' , 'hard-on' , 'has' , 'has-been' , "hasn't" , 'have' , 'have-not' , "haven't" , 'having' , "Hawai'i" , 'he' , 'He' , 'head-on' , 'heads-up' , 'heart-whole' , "he'd" , "he'll" , 'her' , 'here' , 'Here' , "here's" , 'hers' , 'herself' , "he's" , 'higher-up' , 'high-interest' , 'high-up' , 'him' , 'himself' , 'his' , 'hold-down' , 'hollow-back' , 'hoped-for' , 'hopped-up' , 'how' , 'how-do-you-do' , "how-d'ye-do" , 'however' , "how's" , 'how-to' , 'HSV-I' , 'hundred-and-first' , 'hushed-up' , 'i' , 'I' , 'I.D.' , 'i.e.' , 'I.E.D.' , 'I.Q.' , 'I.W.W.' , "i'd" , "I'd" , 'if' , 'If' , "i'll" , "I'll" , 'ill-being' , "i'm" , "I'm" , 'in' , 'In' , 'IN' , 'in-between' , 'inside-out' , 'interest' , 'into' , 'is' , "isn't" , 'it' , 'IT' , 'its' , "it's" , 'itself' , "i've" , "I've" , 'j' , 'J' , 'jerk-off' , 'Johnny-jump-up' , 'jumped-up' , 'just' , 'k' , 'K' , 'keep' , 'kind' , 'knock-down' , 'knock-down-and-drag-out' , 'knocked-out' , 'know-all' , 'know-how' , 'know-it-all' , 'l' , 'L' , 'ladder-back' , 'laid-back' , 'laid-off' , 'lash-up' , 'last' , 'lay-by' , 'lay-up' , 'lead-in' , 'lean-to' , 'least' , 'less' , "let's" , 'lie-in' , 'lighting-up' , 'lights-out' , 'like' , 'little' , 'log-in' , 'longed-for' , 'looker-on' , 'look-over' , 'low-down' , 'low-interest' , 'lying-in' , 'm' , 'M' , "ma'am" , 'machine-made' , 'made' , 'made-up' , 'make-do' , 'make-up' , 'man-made' , 'many' , 'marked-up' , 'match-up' , 'matt-up' , 'may' , 'May' , 'me' , 'ME' , 'mess-up' , 'mid-May' , 'mid-off' , 'mid-on' , 'might' , 'might-have-been' , "mightn't" , 'mixed-up' , 'mix-up' , 'mock-up' , 'more' , 'More' , 'most' , 'mostly' , 'much' , 'must' , "mustn't" , 'my' , 'myself' , 'n' , 'N' , "needn't" , "ne'er-do-well" , 'never' , 'never-never' , 'Never-Never' , 'new-made' , 'next' , 'next-to-last' , 'ninety-four' , 'ninety-one' , 'ninety-three' , 'ninety-two' , 'no' , 'No' , 'no.' , 'nobody' , 'no-go' , 'noone' , 'no-one' , 'nor' , 'no-show' , 'nosh-up' , 'not' , 'nothing' , 'now' , 'nowhere' , 'o' , 'O' , 'odds-on' , 'of' , 'off' , 'off-and-on' , 'often' , 'ok' , 'okay' , 'on' , 'once' , 'once-over' , 'one' , 'one-and-one' , 'one-off' , 'one-on-one' , 'one-to-one' , 'only' , 'or' , 'OR' , 'other' , 'others' , 'ought' , 'our' , 'ours' , 'ourselves' , 'out' , 'out-and-out' , 'over' , 'own' , 'p' , 'P' , 'p.a.' , 'P.A.' , 'paid-up' , 'part' , 'passer-by' , 'pass-through' , 'paste-up' , 'pegged-down' , 'pent-up' , 'per' , 'perhaps' , 'phase-out' , 'phone-in' , 'pick-me-up' , 'pick-off' , 'pig-a-back' , 'pin-up' , 'piss-up' , 'plug-in' , 'pop-up' , 'Post-It' , 'press-up' , 'pull-in' , 'pull-off' , 'pull-through' , 'pull-up' , 'pumped-up' , 'punch-up' , 'purpose-made' , 'put' , 'put-down' , 'put-on' , 'put-put' , 'put-up' , 'put-upon' , 'q' , 'Q' , 'r' , 'R' , 'rake-off' , 'raree-show' , 'rather' , 'Rather' , 'rave-up' , 'read-out' , 'ready-made' , 'right-down' , 'right-side-out' , 'right-side-up' , 'rip-off' , 'roll-on' , 'run-down' , 'run-in' , 'runners-up' , 'runner-up' , 'run-on' , 'run-through' , 'run-up' , 's' , 'S' , 'same' , 'Same' , "San'a" , "Sana'a" , 'sauce-alone' , 'save-all' , 'sawed-off' , 'sawn-off' , 'say-so' , "schoolma'am" , 'see' , 'seem' , 'seemed' , 'seeming' , 'seems' , 'see-through' , 'self-interest' , 'self-made' , 'self-will' , 'send-off' , 'set-back' , 'set-to' , 'seventy-four' , 'seventy-one' , 'seventy-three' , 'seventy-two' , 'seven-up' , 'several' , 'shake-up' , "shan't" , 'shape-up' , 'share-out' , "Shari'a" , 'she' , "she'd" , "she'll" , 'shell-less' , "she's" , 'shoo-in' , 'shoot-down' , "shoot-'em-up" , 'should' , "shouldn't" , 'show' , 'show-off' , 'shut-in' , 'side' , 'side-to-side' , 'since' , 'sit-down' , 'sit-in' , 'sit-up' , 'sixty-four' , 'sixty-one' , 'sixty-three' , 'sixty-two' , 'slap-up' , 'slip-on' , 'slip-up' , 'smash-up' , 'snarl-up' , 'so' , 'so-and-so' , 'sold-out' , 'some' , 'someone' , 'something' , 'somewhere' , 'so-so' , 'sought-after' , 'spaced-out' , 'spend-all' , 'spin-off' , 'spread-out' , 'stand-alone' , 'stand-down' , 'stand-in' , 'stand-up' , 'start-off' , 'step-down' , 'step-in' , 'step-up' , 'stick-on' , 'still' , 'stock-still' , 'stock-take' , 'stopped-up' , 'straight-out' , 'stripped-down' , 'strung-out' , 'stuck-up' , 'such' , 'sum-up' , 'sure-enough' , 't' , 'T' , 'tailor-made' , 'take' , 'take-in' , 'take-up' , 'tap-off' , 'teach-in' , 'than' , 'that' , "that's" , 'the' , 'their' , 'theirs' , 'them' , 'themselves' , 'then' , 'there' , 'therefore' , "there's" , 'these' , 'they' , "they'd" , "they'll" , "they're" , "they've" , 'thing-in-itself' , 'thirty-first' , 'thirty-four' , 'thirty-one' , 'thirty-something' , 'thirty-three' , 'thirty-two' , 'this' , 'those' , 'though' , 'three' , 'through' , 'throw-in' , 'thus' , 'tie-in' , 'tie-on' , 'tie-up' , 'time-out' , 'tip-off' , 'tip-up' , 'to' , 'to-do' , 'toe-in' , 'together' , 'too' , 'top-down' , 'top-up' , 'toss-up' , 'touch-and-go' , 'touch-me-not' , 'toward' , 'trade-in' , 'trade-last' , 'trade-off' , 'tricked-out' , 'trip-up' , 'trumped-up' , 'try-on' , 'tumble-down' , 'tune-up' , 'turn-on' , 'twenty-first' , 'twenty-four' , 'twenty-one' , 'twenty-three' , 'twenty-two' , 'two' , 'two-by-four' , 'two-part' , 'u' , 'U' , 'U.S.A.' , 'uncalled-for' , 'uncared-for' , 'under' , 'unheard-of' , 'unhoped-for' , 'unlooked-for' , 'unthought-of' , 'until' , 'unwished-for' , 'up' , 'up-and-down' , 'upon' , 'upside-down' , 'us' , 'US' , 'v' , 'V' , 'very' , 'w' , 'W' , 'walk-in' , 'walk-on' , 'walk-through' , 'walk-to' , 'walk-up' , 'warm-up' , 'was' , 'washed-out' , 'washed-up' , 'washing-up' , "wasn't" , 'wave-off' , 'way-out' , 'we' , "we'd" , 'well' , "we'll" , 'well-being' , 'well-done' , 'well-made' , 'well-off' , 'well-thought-of' , 'well-to-do' , 'were' , "we're" , "weren't" , "we've" , 'what' , "what's" , 'when' , "when's" , 'where' , "where's" , 'whether' , 'which' , 'while' , 'whipper-in' , 'white-out' , 'who' , 'WHO' , 'whole' , 'whom' , "who's" , 'whose' , 'why' , "why's" , 'will' , 'Will' , 'wished-for' , 'with' , 'within' , 'with-it' , 'without' , "won't" , 'word' , 'words' , 'work-in' , 'worn-out' , 'would' , 'would-be' , "wouldn't" , 'write-down' , 'write-in' , 'write-off' , 'wrong-side-out' , 'x' , 'X' , "Xi'an" , 'y' , 'Y' , "y'all" , 'year-around' , 'yearned-for' , 'yet' , 'you' , 'you-all' , "you'd" , "you'll" , 'your' , "you're" , 'yours' , 'yourself' , 'yourselves' , "you've" , 'z' , 'Z' , 'able' , 'according' , 'accordingly' , 'actually' , 'afterwards' , 'allow' , 'allows' , 'amongst' , 'anybody' , 'anyhow' , 'anyway' , 'anyways' , 'apart' , 'appear' , 'appreciate' , 'appropriate' , "a's" , 'aside' , 'ask' , 'asking' , 'associated' , 'available' , 'away' , 'awfully' , 'becoming' , 'beforehand' , 'believe' , 'beside' , 'besides' , 'best' , 'better' , 'beyond' , 'brief' , 'came' , 'cant' , 'cause' , 'causes' , 'certain' , 'certainly' , 'changes' , 'clearly' , "c'mon" , 'co' , 'com' , 'come' , 'comes' , 'concerning' , 'consequently' , 'consider' , 'considering' , 'contain' , 'containing' , 'contains' , 'corresponding' , 'course' , "c's" , 'currently' , 'definitely' , 'described' , 'despite' , 'different' , 'don' , 'downwards' , 'edu' , 'eg' , 'eight' , 'else' , 'elsewhere' , 'entirely' , 'especially' , 'et' , 'etc' , 'everybody' , 'ex' , 'exactly' , 'example' , 'except' , 'far' , 'fifth' , 'five' , 'followed' , 'following' , 'follows' , 'former' , 'formerly' , 'forth' , 'furthermore' , 'gets' , 'getting' , 'given' , 'gives' , 'goes' , 'gone' , 'got' , 'gotten' , 'greetings' , 'happens' , 'hardly' , 'hello' , 'help' , 'hence' , 'hereafter' , 'hereby' , 'herein' , 'hereupon' , 'hi' , 'hither' , 'hopefully' , 'howbeit' , 'ie' , 'ignored' , 'immediate' , 'inasmuch' , 'inc' , 'indeed' , 'indicate' , 'indicated' , 'indicates' , 'inner' , 'insofar' , 'instead' , 'inward' , "it'd" , "it'll" , 'keeps' , 'kept' , 'know' , 'known' , 'knows' , 'lately' , 'later' , 'latter' , 'latterly' , 'lest' , 'let' , 'liked' , 'likely' , 'look' , 'looking' , 'looks' , 'ltd' , 'mainly' , 'maybe' , 'mean' , 'meanwhile' , 'merely' , 'moreover' , 'name' , 'namely' , 'nd' , 'near' , 'nearly' , 'necessary' , 'need' , 'needs' , 'neither' , 'nevertheless' , 'new' , 'nine' , 'non' , 'none' , 'normally' , 'novel' , 'obviously' , 'oh' , 'old' , 'ones' , 'onto' , 'otherwise' , 'outside' , 'overall' , 'particular' , 'particularly' , 'placed' , 'please' , 'plus' , 'possible' , 'presumably' , 'probably' , 'provides' , 'que' , 'quite' , 'qv' , 'rd' , 're' , 'really' , 'reasonably' , 'regarding' , 'regardless' , 'regards' , 'relatively' , 'respectively' , 'right' , 'said' , 'saw' , 'say' , 'saying' , 'says' , 'second' , 'secondly' , 'seeing' , 'seen' , 'self' , 'selves' , 'sensible' , 'sent' , 'serious' , 'seriously' , 'seven' , 'shall' , 'six' , 'somebody' , 'somehow' , 'sometime' , 'sometimes' , 'somewhat' , 'soon' , 'sorry' , 'specified' , 'specify' , 'specifying' , 'sub' , 'sup' , 'sure' , 'taken' , 'tell' , 'tends' , 'th' , 'thank' , 'thanks' , 'thanx' , 'thats' , 'thence' , 'thereafter' , 'thereby' , 'therein' , 'theres' , 'thereupon' , 'think' , 'third' , 'thorough' , 'thoroughly' , 'throughout' , 'thru' , 'took' , 'towards' , 'tried' , 'tries' , 'truly' , 'try' , 'trying' , "t's" , 'twice' , 'un' , 'unfortunately' , 'unless' , 'unlikely' , 'unto' , 'use' , 'used' , 'useful' , 'uses' , 'using' , 'usually' , 'value' , 'various' , 'via' , 'viz' , 'vs' , 'want' , 'wants' , 'way' , 'welcome' , 'went' , 'whatever' , 'whence' , 'whenever' , 'whereafter' , 'whereas' , 'whereby' , 'wherein' , 'whereupon' , 'wherever' , 'whither' , 'whoever' , 'willing' , 'wish' , 'wonder' , 'yes' , 'zero' , 'stuff' , 'things' , 'thing' , 'lot' , 'lots' , 'whatever' , 'way' , 'somebody' , 'bunch' , 'no one' , 'thousands' , 'room' , 'route' , 'elsewhere' , 'world' , 'ways' , 'sort' , 'people' , 'top' , 'sake' , ] ; const map = { } ; STOPWORDS . forEach ( w => { map [ w ] = true ; } ) ; const replaceMap = { 'maslow' : 'Maslo' , } ; export function isReplace ( w ) { return replaceMap [ w . toLowerCase ( ) ] ; } export function isStopWord ( w ) { return ! ! map [ w . toLowerCase ( ) ] ; }