From 09891990a6343f1379b13910ea10efafc1f2a2ba Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sat, 6 Jun 2020 08:23:30 +0200 Subject: [PATCH] stuff --- Plugins/SpellCheck/SpellCheck.plugin.js | 7 +- Plugins/SpellCheck/dic/en.dic | 99 +++++++++++++++++++++++++ 2 files changed, 104 insertions(+), 2 deletions(-) diff --git a/Plugins/SpellCheck/SpellCheck.plugin.js b/Plugins/SpellCheck/SpellCheck.plugin.js index 8bc2ebabb1..49ae4f389c 100644 --- a/Plugins/SpellCheck/SpellCheck.plugin.js +++ b/Plugins/SpellCheck/SpellCheck.plugin.js @@ -6,7 +6,7 @@ var SpellCheck = (_ => { return class SpellCheck { getName () {return "SpellCheck";} - getVersion () {return "1.4.8";} + getVersion () {return "1.4.9";} getAuthor () {return "DevilBro";} @@ -14,6 +14,7 @@ var SpellCheck = (_ => { constructor () { this.changelog = { + "fixed":[["'s & n't & n'","No longer marks words with extra suffix/prefix as incorrect"]], "improved":[["Performance & Languages","Increased performance and variety of dictionaries"]] }; @@ -373,7 +374,9 @@ var SpellCheck = (_ => { let wordLow = unformatedWord.toLowerCase(); let wordWithoutSymbols = wordLow.replace(/[0-9\µ\@\$\£\€\¥\¢\²\³\>\<\|\,\;\.\:\-\_\#\+\*\~\?\¿\\\´\`\}\=\]\)\[\(\{\/\&\%\§\"\!\¡\^\°\n\t\r]/g, ""); if (wordLow.indexOf("http://") != 0 && wordLow.indexOf("https://") != 0 && wordWithoutSymbols) { - for (let key in dictionaries) for (let word of [wordLow, wordWithoutSymbols]) { + let wordStartingPos = /^.{1}'/.test(wordWithoutSymbols) ? wordWithoutSymbols.split("'")[1] : ""; + let wordEndingPos = /'.{1}$/.test(wordWithoutSymbols) ? wordWithoutSymbols.split("'").reverse()[1] : ""; + for (let key in dictionaries) for (let word of BDFDB.ArrayUtils.removeCopies([wordLow, wordWithoutSymbols, wordStartingPos, wordEndingPos].filter(n => n))) { let firstLetterLower = word.charAt(0); if (dictionaries[key] && dictionaries[key][firstLetterLower] && dictionaries[key][firstLetterLower][word.length] && dictionaries[key][firstLetterLower][word.length].includes(word)) return false; } diff --git a/Plugins/SpellCheck/dic/en.dic b/Plugins/SpellCheck/dic/en.dic index bcd71a4d18..e8e7cf2597 100644 --- a/Plugins/SpellCheck/dic/en.dic +++ b/Plugins/SpellCheck/dic/en.dic @@ -1594,6 +1594,7 @@ aimless aimlessly aimlessness aims +ain't ainu air airbag @@ -3855,6 +3856,7 @@ are area areal areas +aren't arena arenas arequipa @@ -5536,6 +5538,8 @@ baguette baguettes baguio bah +baha'i +baha'ullah bahama bahamanian bahamas @@ -11162,6 +11166,7 @@ camshaft camshafts camus can +can't canaan canaanite canaanites @@ -12679,6 +12684,7 @@ cfo cg cgi ch +ch'in chablis chad chadian @@ -17694,6 +17700,8 @@ coughed coughing coughs could +could've +couldn't coulee coulees coulis @@ -19337,6 +19345,8 @@ czechoslovakians czechs czerny d +d'arezzo +d'estaing da dab dabbed @@ -22016,6 +22026,7 @@ diddums diderot didgeridoo didgeridoos +didn't dido didoes didrikson @@ -23597,6 +23608,7 @@ doers does doeskin doeskins +doesn't doff doffed doffing @@ -23750,6 +23762,7 @@ domino dominoes domitian don +don't dona donahue donald @@ -24902,6 +24915,8 @@ dz dzerzhinsky dzungaria e +e'en +e'er ea each eager @@ -26707,6 +26722,7 @@ entomologists entomology entourage entourages +entr'acte entrails entrained entrance @@ -32235,6 +32251,7 @@ fwy fy fyi g +g'day ga gab gabardine @@ -35253,6 +35270,7 @@ gyved gyves gyving h +h'm ha haas habakkuk @@ -35307,6 +35325,7 @@ haddock haddocks hades hadith +hadn't hadoop hadrian hadst @@ -35974,6 +35993,7 @@ hashtag hashtags hasidim haskell +hasn't hasp hasps hassle @@ -36079,6 +36099,7 @@ havarti have havel haven +haven't havens haversack haversacks @@ -36168,6 +36189,8 @@ hdmi hdqrs hdtv he +he'd +he'll head headache headaches @@ -37993,6 +38016,8 @@ hovering hovers hovhaness how +how'd +how're howard howbeit howdah @@ -38609,6 +38634,10 @@ hysterics hyundai hz i +i'd +i'll +i'm +i've ia iaccoca iago @@ -41960,6 +41989,7 @@ ism ismael ismail isms +isn't iso isobar isobaric @@ -42012,6 +42042,8 @@ isthmus isthmuses isuzu it +it'd +it'll itaipu ital italian @@ -43992,6 +44024,10 @@ kyoto kyrgyzstan kyushu l +l'amour +l'enfant +l'oreal +l'ouverture la lab laban @@ -46873,6 +46909,7 @@ lysosomes lyx m ma +ma'am maalox mabel mable @@ -48372,6 +48409,7 @@ mayflower mayflowers mayfly mayhem +mayn't maynard mayo mayonnaise @@ -49467,10 +49505,12 @@ miffing miffs mig might +might've mightier mightiest mightily mightiness +mightn't mighty mignonette mignonettes @@ -51803,6 +51843,7 @@ mussolini mussorgsky mussy must +must've mustache mustached mustaches @@ -51820,6 +51861,7 @@ mustier mustiest mustily mustiness +mustn't musts musty mutability @@ -51963,6 +52005,7 @@ mythology myths myxomatosis n +n'djamena na naacp naan @@ -52323,6 +52366,7 @@ nco nd ndjamena ne +ne'er neal neanderthal neanderthals @@ -52428,6 +52472,7 @@ needlewoman needlewomen needlework needling +needn't needs needy nefarious @@ -53502,6 +53547,7 @@ nooses nootka nope nor +nor'easter nora norad norbert @@ -53978,6 +54024,20 @@ nyquil nyse nz o +o'brien +o'casey +o'clock +o'connell +o'connor +o'donnell +o'er +o'hara +o'higgins +o'keeffe +o'neil +o'neill +o'rourke +o'toole oaf oafish oafishly @@ -55266,6 +55326,7 @@ oubliette oubliettes ouch ought +oughtn't ouija ouijas ounce @@ -64661,6 +64722,7 @@ rebuttals rebutted rebutting rec +rec'd recalcitrance recalcitrant recalculate @@ -69393,6 +69455,7 @@ samuelson samurai samurais san +san'a sana sanatorium sanatoriums @@ -70791,6 +70854,7 @@ seborrhea seborrhoea sebum sec +sec'y secant secants secateurs @@ -71740,6 +71804,7 @@ shampoos shamrock shamrocks shams +shan't shana shandies shandong @@ -71793,6 +71858,7 @@ sharers shares shareware shari +shari'a sharia shariah sharif @@ -71857,6 +71923,8 @@ shay shays shcharansky she +she'd +she'll shea sheaf shear @@ -71995,6 +72063,7 @@ shewing shewn shews shh +shi'ite shiatsu shibboleth shibboleths @@ -72305,10 +72374,12 @@ shotgunning shotguns shots should +should've shoulder shouldered shouldering shoulders +shouldn't shout shouted shouter @@ -74764,6 +74835,7 @@ soto sots sottish sou +sou'wester souffle souffles sough @@ -79122,6 +79194,7 @@ systolic szilard szymborska t +t'ang ta tab tabasco @@ -80513,6 +80586,8 @@ thant thar tharp that +that'd +that'll thatch thatched thatcher @@ -80675,6 +80750,10 @@ thetas thew thews they +they'd +they'll +they're +they've thiamine thick thicken @@ -87841,6 +87920,7 @@ washstands washtub washtubs washy +wasn't wasp waspish waspishly @@ -88037,6 +88117,10 @@ wazoo wazoos wc we +we'd +we'll +we're +we've weak weaken weakened @@ -88341,6 +88425,7 @@ wens went wept were +weren't werewolf werewolves wesak @@ -88702,6 +88787,10 @@ whizzed whizzes whizzing who +who'd +who'll +who're +who've whoa whodunit whodunits @@ -88766,6 +88855,7 @@ whupped whupping whups why +why'd whys wi wicca @@ -89355,6 +89445,7 @@ women womenfolk womenfolks won +won't wonder wonderbra wondered @@ -89639,6 +89730,8 @@ wot wotan wotcha would +would've +wouldn't woulds wouldst wound @@ -89865,6 +89958,7 @@ xerxes xes xhosa xi +xi'an xian xians xiaoping @@ -89921,6 +90015,7 @@ xylophones xylophonist xylophonists y +y'all ya yabber yabbered @@ -90178,6 +90273,10 @@ yoruba yosemite yossarian you +you'd +you'll +you're +you've young younger youngest