UNPKG

opengrammer

Version:

A grammar checker npm package that scans text for grammar mistakes and provides suggestions with visual indicators

174 lines (165 loc) 9.3 kB
// Noun list needs to be expanded // exception ing's for their there and thy're export const excpetionIng = ['booking' , "meeting", "training", "building", "painting", "hearing", "understanding", "feeling", "recording", "reading", "following", "planning", "offering", "writing", "finding", "beginning", "funding", "dressing", "setting", "housing", "manufacturing", "learning", "teaching", "processing", "printing", "engineering", "advertising", "marketing", "packaging", "handling" ]; // exception an/a export const Anexceptions = ['hour', 'hourly','hourglass','heir','honor','honorable','honest']; // to export const correctTo = ['go', 'be', 'do', 'have', 'get', 'make', 'see', 'know', 'think', 'take', 'come', 'give', 'find', 'tell', 'work', 'call', 'try', 'ask', 'need', 'want', 'use', 'say', 'let', 'help', 'keep', 'turn', 'move', 'play', 'run', 'show', 'hear', 'bring', 'write', 'provide', 'sit', 'stand', 'lose', 'pay', 'meet', 'include', 'continue', 'set', 'learn', 'change', 'lead', 'understand', 'watch', 'follow', 'stop', 'create', 'speak', 'read', 'allow', 'add', 'spend', 'grow', 'open', 'walk', 'win', 'offer', 'remember', 'love', 'consider', 'appear', 'buy', 'wait', 'serve', 'die', 'send', 'build', 'stay', 'fall', 'cut', 'reach', 'kill', 'raise', 'pass', 'sell', 'decide', 'return', 'explain', 'develop', 'carry', 'break', 'receive', 'agree', 'support', 'hit', 'produce', 'eat', 'cover', 'catch', 'draw', 'choose'] // too export const correctToo = ['much', 'many', 'little', 'few', 'big', 'small', 'good', 'bad', 'fast', 'slow', 'early', 'late', 'long', 'short', 'high', 'low', 'hot', 'cold', 'easy', 'hard', 'nice', 'sad', 'happy'] // You're Correct Version export const youreCorrectVersion = ['going', 'coming', 'doing', 'saying', 'looking', 'happy', 'sad', 'good', 'bad', 'nice'] // contractions export const contractions = { 'dont': "don't", 'cant': "can't", 'wont': "won't", 'isnt': "isn't", 'arent': "aren't", 'wasnt': "wasn't", 'werent': "weren't", 'hasnt': "hasn't", 'havent': "haven't", 'shouldnt': "shouldn't", 'couldnt': "couldn't", 'wouldnt': "wouldn't" }; // hyphens export const hyphens = { 'end to end': "end-to-end", 'state of the art': "state-of-the-art", 'up to date': "up-to-date", 'well known': "well-known", 'long term': "long-term", 'short term': "short-term", 'real time': "real-time", 'high quality': "high-quality", 'low cost': "low-cost", 'full time': "full-time", 'part time': "part-time", 'hands on': "hands-on", 'one on one': "one-on-one", 'face to face': "face-to-face", 'day to day': "day-to-day", 'word for word': "word-for-word", 'side by side': "side-by-side", 'back to back': "back-to-back", 'well being': "well-being", 'self esteem': "self-esteem", 'long standing': "long-standing", 'wide ranging': "wide-ranging", 'far reaching': "far-reaching", 'close knit': "close-knit", 'high end': "high-end", 'low end': "low-end", 'middle aged': "middle-aged", 'old fashioned': "old-fashioned", 'new found': "new-found", 'well rounded': "well-rounded", 'well informed': "well-informed", 'well established': "well-established", 'well deserved': "well-deserved", 'well designed': "well-designed", 'well written': "well-written", 'well made': "well-made", 'well maintained': "well-maintained", 'well documented': "well-documented", 'well received': "well-received", 'well thought': "well-thought", 'well planned': "well-planned", 'well organized': "well-organized", 'well structured': "well-structured", 'well balanced': "well-balanced", 'well educated': "well-educated", 'well trained': "well-trained", 'well equipped': "well-equipped", 'well prepared': "well-prepared", 'well executed': "well-executed", 'well managed': "well-managed", 'well funded': "well-funded", 'well supported': "well-supported", 'well liked': "well-liked", 'well respected': "well-respected", 'well regarded': "well-regarded", 'well understood': "well-understood", 'well defined': "well-defined", 'well developed': "well-developed", 'well tested': "well-tested", 'well proven': "well-proven", 'well researched': "well-researched", 'well studied': "well-studied", 'well publicized': "well-publicized", 'well advertised': "well-advertised", 'well marketed': "well-marketed", 'well positioned': "well-positioned", 'well placed': "well-placed", 'well timed': "well-timed", 'well coordinated': "well-coordinated", 'well integrated': "well-integrated", 'well connected': "well-connected", 'well synchronized': "well-synchronized", 'well aligned': "well-aligned", 'well matched': "well-matched", 'well suited': "well-suited", 'well adapted': "well-adapted", 'well adjusted': "well-adjusted" }; // concise export const concise = { 'as a whole the': "the", 'in order to': "to", 'due to the fact that': "because", 'at this point in time': "now", 'in the event that': "if", 'for the purpose of': "to", 'in the case of': "for", 'with regard to': "regarding", 'a large number of': "many", 'a small number of': "few", 'in the near future': "soon", 'at the present time': "now", 'as a result of': "because of", 'in spite of the fact that': "although", 'on account of the fact that': "because", 'in the absence of': "without", 'in the presence of': "with", 'in the course of': "during", 'with respect to': "regarding", 'it is important to note that': "note that", 'it should be noted that': "note that", 'there is no doubt that': "certainly", 'it is clear that': "clearly", 'it is evident that': "evidently", 'in terms of': "", 'for all intents and purposes': "essentially", 'in the final analysis': "finally" }; // common nouns export const commonNouns = [ 'partner','own','car', 'house', 'dog', 'cat', 'book', 'person', 'people', 'friend', 'day', 'time', 'thing', 'way', 'man', 'woman', 'child', 'work', 'life', 'world', 'school', 'home', 'family', 'year', 'place', 'city', 'country', 'name', 'problem', 'question', 'answer', 'idea', 'job', 'word', 'number', 'name', 'part', 'hand', 'eye', 'head', 'body', 'face', 'door', 'window', 'room', 'food', 'water', 'money', 'love', 'mind', 'heart', 'soul', 'spirit', 'son', 'daughter', 'mother', 'father', 'brother', 'sister', 'process', 'system', 'method', 'approach', 'strategy', 'plan', 'project', 'task', 'activity', 'event', 'service', 'product', 'item', 'element', 'component', 'feature', 'function', 'tool', 'device', 'machine', 'equipment', 'material', 'substance', 'resource', 'asset', 'property', 'document', 'file', 'record', 'account', 'report', 'article', 'story', 'chapter', 'section', 'page', 'line', 'point', 'detail', 'fact', 'information', 'data', 'knowledge', 'skill', 'ability', 'talent', 'experience', 'background', 'history', 'culture', 'tradition', 'custom', 'habit', 'routine', 'pattern', 'behavior', 'action', 'movement', 'change', 'development', 'growth', 'progress', 'improvement', 'increase', 'decrease', 'reduction', 'addition', 'subtraction', 'multiplication', 'division', 'calculation', 'computation', 'analysis', 'study', 'research', 'investigation', 'examination', 'inspection', 'review', 'evaluation', 'assessment', 'judgment', 'decision', 'choice', 'option', 'alternative', 'possibility', 'opportunity', 'chance', 'risk', 'danger', 'threat', 'challenge', 'difficulty', 'problem', 'issue', 'concern', 'matter', 'subject', 'topic', 'theme', 'focus', 'attention', 'interest', 'concern', 'care', 'worry', 'anxiety', 'fear', 'hope', 'dream', 'goal', 'objective', 'target', 'aim', 'purpose', 'intention', 'motivation', 'reason', 'cause', 'effect', 'result', 'outcome', 'consequence', 'impact', 'influence', 'power', 'strength', 'force', 'energy', 'effort', 'work', 'labor', 'task', 'duty', 'responsibility', 'obligation', 'requirement', 'need', 'demand', 'request', 'question', 'inquiry', 'query', 'statement', 'declaration', 'announcement', 'message', 'communication', 'conversation', 'discussion', 'debate', 'argument', 'disagreement', 'conflict', 'dispute', 'controversy', 'disagreement', 'difference', 'similarity', 'comparison', 'contrast', 'relationship', 'connection', 'link', 'bond', 'tie', 'association', 'partnership', 'collaboration', 'cooperation', 'team', 'group', 'organization', 'company', 'business', 'enterprise', 'industry', 'sector', 'field', 'area', 'domain', 'realm', 'sphere', 'world', 'universe', 'space', 'environment', 'atmosphere', 'surroundings', 'setting', 'location', 'position', 'place', 'spot', 'site', 'venue', 'arena', 'stage', 'platform', 'base', 'foundation', 'ground', 'floor', 'surface', 'level', 'layer', 'stratum', 'level', 'tier', 'rank', 'grade', 'class', 'category', 'type', 'kind', 'sort', 'variety', 'form', 'shape', 'structure', 'framework', 'design', 'pattern', 'model', 'example', 'instance', 'case', 'sample', 'specimen'];