Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
chore: dictionary curation (#4230)
Andrew Dunbardf94232511f8
diff --git a/harper-core/annotations.json b/harper-core/annotations.jsonindex 0d4483c47..82a2b6696 100644--- a/harper-core/annotations.json+++ b/harper-core/annotations.json@@ -1045,6 +1045,13 @@"is_abstract": true}}+ },+ "4": {+ "#": "abbreviation property",+ "//": "mnemonic: 4 looks like A",+ "metadata": {+ "abbreviation": true+ }}}}diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dictindex 197ccf118..99b7d7d61 100644--- a/harper-core/dictionary.dict+++ b/harper-core/dictionary.dict@@ -37,9 +37,9 @@ AFT/OAI/NwSg # artificial intelligenceA.I./NwSgAIDS/NgJ # disease-AK/ON # US state (Alaska)+AK/ON4 # US state (Alaska)AKP/Og # political party-AL/NO # US state (Alabama)+AL/NO4 # US state (Alabama)AM/ONgJAMA/ONAMD/NOg@@ -54,7 +54,7 @@ APC/NOJAPI/NSg # application programming interface, cf. ABIAPO/NAPR/N-AR/JNO # US state (Arkansas)+AR/JNO4 # US state (Arkansas)ARC/NOJASAP/ # as soon as possibleASCII/OgS@@ -72,7 +72,7 @@ AVI/O # media formatAWACS/NgAWOL/JNg # absent without leaveAWS/ONg-AZ/Og # US state (Arizona)+AZ/Og4 # US state (Arizona)AZT/Ng # drugAachen/OgAaliyah/Og@@ -101,7 +101,7 @@ Absalom/OgAbuja/OgAbyssinia/OgJAbyssinian/JNOg-Ac/ # Actinium+Ac/4 # ActiniumAcadia/OgAcapulco/OgAccenture/g@@ -178,7 +178,7 @@ Afro/NSgAfrocentric/JAfrocentrism/NgAfrofuturism/Ng-Ag/ # Silver+Ag/4 # SilverAgamemnon/OgAgana/OAgassi/Og@@ -222,7 +222,7 @@ Akita/ONgAkiva/OgAkkad/OgAkron/Og-Al/Og # aluminium, aluminum; given name+Al/Og4 # aluminium, aluminum; given nameAla/NOSAlabama/NOgAlabaman/JNgS@@ -370,7 +370,7 @@ Alyce/gAlyson/OgAlyssa/OgAlzheimer/Ng-Am/ # Americium+Am/4 # AmericiumAmadeus/OgAmado/OgAmalia/Og@@ -565,7 +565,7 @@ Apple/ONgAppleseed/gAppleton/OgAppomattox/Og-Apr/Og+Apr/Og4April/OgSApuleius/OgAquafresh/g@@ -575,7 +575,7 @@ Aquila/OgAquinas/OgAquino/OgAquitaine/Og-Ar/ # Argon+Ar/4 # ArgonAra/OgArab/JNSgArabia/Og@@ -673,7 +673,7 @@ Artie/OgArturo/gAruba/OgAryan/NOSgJ-As/ # Arsenic+As/4 # ArsenicAsahi/OgAsama/gAscella/Og@@ -756,7 +756,7 @@ Attlee/OgAttnAttucks/gAtwood/Og-Au/ # Gold+Au/4 # GoldAubrey/OgAuburn/OgAuckland/Og@@ -766,7 +766,7 @@ Audion/gAudra/OgAudrey/OgAudubon/Og-Aug/Og+Aug/Og4Augean/JgAugsburg/OgAugust/OgS@@ -833,7 +833,7 @@ Azov/OgAztec/NOSgJ # ancient civilizationAztecan/JNgAztlan/Og-B/ # Boron+B/4 # BoronB-52/NgSBA/NOgJBASIC/OgS@@ -866,7 +866,7 @@ BSD/ONSgBTU/NBTW/BYOB/-Ba/ # Barium+Ba/4 # BariumBaal/OgSBaath/OgBaathist/JNg@@ -1038,7 +1038,7 @@ Baylor/OgBayonne/OgBayreuth/OgBaywatch/g-Be/ # Beryllium+Be/4 # BerylliumBeach/OgBeadle/OgBeamer/NgS # nickname for BMW@@ -1222,7 +1222,7 @@ Bhopal/OgBhutan/OgBhutanese/JONgBhutto/Og-Bi/ # Bismuth+Bi/4 # BismuthBialystok/OgBianca/OgBib@@ -1262,7 +1262,7 @@ BitTorrent/OgBizet/NgBjerknes/gBjork/Og-Bk/ # Berkelium+Bk/4 # BerkeliumBlackBerry/NgVBlackbeard/OgBlackburn/Og@@ -1407,7 +1407,7 @@ Bowman/OgBoyd/OgBoyer/OgBoyle/Og-Br/ # Bromine+Br/4 # BromineBrad/OgYBradbury/ONg # ray =Braddock/Og@@ -1643,8 +1643,8 @@ Byron/OgByronic/JgByzantine/JNgSByzantium/ONg-C/NOg # Carbon-CA/ON # US state (California)+C/NOg4 # Carbon+CA/ON4 # US state (California)CAD/Ng # computer-aided design; canadian dollarCAI/NOCAM/NO@@ -1677,7 +1677,7 @@ CNC'd/VtT # pastCNCing/NV6 # present, gerundCNN/ONSg # media company; convolutional neural networkCNS/Ng-CO/ONg # US state (Colorado)+CO/ONg4 # US state (Colorado)COBOL/OgS # programming languageCOD/ONCOFF/ONg # common object file format@@ -1696,13 +1696,13 @@ CRT/NSg # cathode ray tubeCSS/NOgCST/ONgCSV/Ng # data file format-CT/ONgVJ # US state (Connecticut)+CT/ONg4VJ # US state (Connecticut)CTO/NOgS # chief technology officerCUDA/ONg # computing architectureCV/NOSJ # curriculum vitaeCVS/NOg # version controlCZ/N-Ca/ # Calcium+Ca/4 # CalciumCabernet/gCabot/OgCabral/g@@ -1947,9 +1947,9 @@ Cayenne/OgCayman/JOgCayuga/NOSgCayuse/N-Cb/-Cd/ # Cadmium-Ce/ # Cerium+Cb/4 # Columbium+Cd/4 # Cadmium+Ce/4 # CeriumCeausescu/gCebu/OgCebuano/OgJ@@ -1987,7 +1987,7 @@ Cetus/OgCeylon/ONg # old name of Sri LankaCeylonese/JNCezanne/g-Cf/ # Californium+Cf/4 # CaliforniumCh'in/OgChablis/ONgChad/ONg@@ -2189,7 +2189,7 @@ Citibank/OgCitigroup/OgCitroën/OgCitroen/Og-Cl/ # Chlorine+Cl/4 # ChlorineClaiborne/OgClair/OgClaire/Og@@ -2249,9 +2249,9 @@ Clovis/OgClyde/OgClydesdale/NOgClytemnestra/Og-Cm/ # Curium+Cm/4 # CuriumCmdr/N-Co/ # Cobalt+Co/4 # CobaltCobain/OgCobb/OgCochabamba/Og@@ -2452,7 +2452,7 @@ Coy/OgCoyle/OgCozumel/OgCpl/N-Cr/ # Chromium+Cr/4 # ChromiumCrabbe/OgCraft/OgCraig/Og@@ -2513,7 +2513,7 @@ Csonka/gCt/NCtesiphon/OgCthulhu/Og-Cu/ # Copper+Cu/4 # CopperCuba/OgCuban/NSgJCuchulain/g@@ -2564,11 +2564,11 @@ DAR/ODARPA/OgDAT/NgDBMS/Ng-DC/ONgJV # US District of Columbia+DC/ONg4JV # US District of ColumbiaDD/NOgJDDS/NgDDT/NS-DE/ON # US state (Delaware)+DE/ON4 # US state (Delaware)DEA/ONDEC/NOSdDF/Og # Distrito Federal, see also CDMX@@ -2724,7 +2724,7 @@ Debouillet/gDebra/OgDebs/OgDebussy/g-Dec/Og+Dec/Og4Decalogue/ONgDecatur/OgDecca/Og@@ -3039,7 +3039,7 @@ Dvina/gDvorak/OgJDwayne/OgDwight/Og-Dy/ # Dysprosium+Dy/4 # DysprosiumDyer/OgDylan/OgDynamoDB/g@@ -3278,7 +3278,7 @@ Epsom/OgEpson/gEpstein/OgVEquuleus/Og-Er/ # Erbium+Er/4 # ErbiumErasmus/ONgErato/OgEratosthenes/Og@@ -3355,7 +3355,7 @@ Eton/OgEtruria/OgEtruscan/JNOgEtta/Og-Eu/ # Europium+Eu/4 # EuropiumEucharist/NgSEucharistic/JEuclid/Og@@ -3421,7 +3421,7 @@ Eyre/OgEysenck/gEzekiel/OgEzra/Og-F/ # Fluorine+F/4 # FluorineF1/9gFA/Og # Football AssociationFAA/O@@ -3437,7 +3437,7 @@ FFT/NgS # fast Fourier transformFHA/OgFICA/OgFIFO/N-FL/NO # US state (Florida)+FL/NO4 # US state (Florida)FLOSS/ONV # free libre open source softwareFM/NSgFNMA/Og@@ -3506,8 +3506,8 @@ Fawkes/OgFay/OgFaye/OgFayetteville/Og-Fe/ # Iron-Feb/Og+Fe/4 # Iron+Feb/Og4February/OgSFed/OgSFedEx/OgV@@ -3604,7 +3604,7 @@ Flossie/OgFlowers/OgFloyd/OgFlynn/Og-Fm/ # Fermium+Fm/4 # FermiumFoch/ONgFokker/ONgFoley/Og@@ -3634,7 +3634,7 @@ Fourneyron/gFourth/OFowler/OgFox/NOSg-Fr/ # Francium+Fr/4 # FranciumFragonard/gFran/OgFrance/OgS@@ -3695,7 +3695,7 @@ Freud/OgFreudian/JNgFrey/OgFreya/Og-Fri/Ng+Fri/Ng4Friday/NSgFridman/OgFrieda/Og@@ -3746,7 +3746,7 @@ Fushun/OgFuzhou/OgFuzzbuster/gG/Ng>nB-GA/ON # US state (Georgia)+GA/ON4 # US state (Georgia)GAO/OGATT/OgGB/NOg@@ -3784,7 +3784,7 @@ GTR/NgSGTS/NSgGU/NGUI/ONgS-Ga/ # Gallium+Ga/4 # GalliumGable/OgGabon/OgGabonese/NgJ@@ -3891,10 +3891,10 @@ Gayle/OgGaza/OgGazan/JOgSGaziantep/Og-Gd/ # Gadolinium+Gd/4 # GadoliniumGdańsk/OgGdansk/Og-Ge/ # Germanium+Ge/4 # GermaniumGeffen/OgGehenna/OgGehrig/Og@@ -4247,7 +4247,7 @@ HDMI/OHDTV/NHF/NgJHHS/ON-HI/ON # US state (Hawaii)+HI/ON4 # US state (Hawaii)HIMARS/NHIV/NgHM/NO@@ -4424,7 +4424,7 @@ Hayworth/OgHazel/OgHazleton/OgHazlitt/g-He/Ia3Og # Helium; I~pronoun a~personal 3~person .~singular s~subject / Og~proper noun+possessive+He/Ia3Og4 # Helium; I~pronoun a~personal 3~person .~singular s~subject / Og~proper noun+possessiveHead/OgHealey/OgHealy/Og@@ -4561,8 +4561,8 @@ Heyerdahl/gHeywood/OgHezbollah/OgHezekiah/Og-Hf/ # Hafnium-Hg/ # Mercury+Hf/4 # Hafnium+Hg/4 # MercuryHialeah/OgHiawatha/OgHibernia/Og@@ -4618,7 +4618,7 @@ Hitchcock/OgHitler/ONSgHittite/NOSgJHmong/NOgJ-Ho/O # Holmium; Ho Chi Minh+Ho/O4 # Holmium; Ho Chi MinhHobart/OgHobbes/OgHobbs/Og@@ -4785,20 +4785,20 @@ Hymen/OgHyperion/OgHyundai/NgHz/g-I/~Ia1s. # Iodone; I~pronoun a~personal 1~person .~singular s~subject+I/~Ia1s.4 # Iodone; I~pronoun a~personal 1~person .~singular s~subjectI'd/~I'd've/I'll/~I'm/~I've/~-IA/ON # US state (Iowa)+IA/ON4 # US state (Iowa)IBM/ONgIC/NgS # integrated circuitICBM/NSgICC/O # International Criminal CourtICQ/ONV # chat protocolICU/NO # Unicode library-ID/NOSgVJ # US state (Idaho)+ID/NOSg4VJ # US state (Idaho)IDE/NIDF/Og # Israel's militaryIE/ONJ@@ -4806,12 +4806,12 @@ IED/N # improvised explosive deviceIEEE/O # standards organizationIIRC # If I recall correctlyIKEA/Og # furniture company-IL/NO # US state (Illinois)+IL/NO4 # US state (Illinois)IMF/Og # International Monetary FundIMHO/IMNSHO/IMO/NO-IN/ON # US state (Indiana)+IN/ON4 # US state (Indiana)ING/gINRIINS/NO@@ -4827,7 +4827,7 @@ IRS/ONgISBN/NgSISDN/Ng # telephone standardISIS/O-ISO/ONgP # standards organization+ISO/ONgSP # standards organization, optical disk image formatISP/NISS/NOIT/N # removed `5`. nouns can qualify nouns. makes `it` an adjective which interferes with heuristics@@ -4878,7 +4878,7 @@ Imhotep/OgImodium/gImogene/OgImus/Og-In/ # Indium+In/4 # IndiumIna/OgInc/JInca/NSg@@ -4938,7 +4938,7 @@ Ipswich/OIqaluit/OgIqbal/OgIquitos/Og-Ir/ # Iridium+Ir/4 # IridiumIra/OgIran/OgIranian/NOSgJ@@ -5071,7 +5071,7 @@ James/OgJamestown/OgJami/gJamie/Og-Jan/Og+Jan/Og4Jana/OgJanacek/gJane/ONg@@ -5289,7 +5289,7 @@ Judith/OgJudson/OgJudy/ONgJuggernaut/Og-Jul/O+Jul/O4Jules/OgJulia/OgJulian/OgJ@@ -5302,7 +5302,7 @@ Julio/gJulius/OgJulliard/OgJuly/OgS-Jun/Og+Jun/Og4June/OgSJuneau/OgJuneteenth/gO@@ -5321,7 +5321,7 @@ Justine/OgJustinian/OgJJutland/OgJuvenal/Og-K/ # Potassium+K/4 # PotassiumK-pop/NmgKB/NOg # kilobyte, cf. KbKC/ON@@ -5331,8 +5331,8 @@ KIA/NJ # killed in actionKKK/OgKO/NgVKP/N-KS/ONV # US state (Kansas)-KY/O # US state (Kentucky)+KS/ON4V # US state (Kansas)+KY/O4 # US state (Kentucky)Kaaba/OgKabul/OgKafka/Og # franz -@@ -5631,7 +5631,7 @@ Kosygin/gKotlin/OgKoufax/gKowloon/Og-Kr/ # Krypton+Kr/4 # KryptonKraft/OgKrakatoa/OgKraken/OgS@@ -5700,7 +5700,7 @@ L'Amour/gL'EnfantL'Oreal/gL'Ouverture/g-LA/NO # US state (Louisiana)+LA/NO4 # US state (Louisiana)LAN/NgLBJ/NOgLC/NJ@@ -5726,7 +5726,7 @@ LPN/NSgLSATLSD/NgLVN/N-La/ # Lanthanum+La/4 # LanthanumLab/NOLaban/OgLabor/Og_ # the australian political party doesn't use the normal australian spelling of 'labour'@@ -5966,7 +5966,7 @@ Lexington/OgLexus/ONSgLhasa/OgSLhotse/Og-Li/ # Lithium+Li/4 # LithiumLiam/OgLiaoning/OgLibby/Og@@ -6145,10 +6145,10 @@ Lowlands/OLoyang/OgLoyd/OgLoyola/Og-Lr/ # Lawrencium+Lr/4 # LawrenciumLt/NLtd/JN-Lu/ # Lutetium+Lu/4 # LutetiumLuanda/OgLuann/OgLubavitcher/NgJ@@ -6233,22 +6233,22 @@ Lysenko/OgLysistrata/ONgLysol/OgM/NOSgJGB-MA/JNOg # US state (Massachusetts)+MA/JNOg4 # US state (Massachusetts)MASH/NMB/NOgVMBA/NgMC/NOVMCI/ONg-MD/ONgJ # US state (Maryland)+MD/ONg4J # US state (Maryland)MD5/NgMDF/Ng # medium-density fiberboardMDT/NO-ME/ON # US state (Maine)+ME/ON4 # US state (Maine)MEGO/SMFA/ONgMGM/ONg # movie companyMHz/-MI/ONg # US state (Michigan)+MI/ONg4 # US state (Michigan)MI6/Og # agencyMIA/JNO # missing in actionMIDI/ONg@@ -6259,8 +6259,8 @@ MLK/Og # Martin Luther KingMM/NOMMA/Ng # mixed martial artsMMU/NgS # memory management unit-MN/ON # US state (Minnesota)-MO/ONJ # US state (Missouri)+MN/ON4 # US state (Minnesota)+MO/ON4J # US state (Missouri)MOOC/NMOSFET/NgS # transistorMP/NOgJ # military police; member of parliament@@ -6268,13 +6268,13 @@ MP3/NSg # audio formatMP4/NSg # audio/video formatMPEG/ONMRI/NgV # magnetic resonance imaging-MS/NOg # US state (Mississippi)+MS/NOg4 # US state (Mississippi)MSG/NOg # flavour enhancerMSRP/NSgMST/ONgVMSW/NMSX/NOgS # 8-bit series of Japanese computers-MT/JNOg # US state (Montana)+MT/NOg4J # US state (Montana)MTV/OgMVP/Ng # most valuable playerMW/NO@@ -6464,7 +6464,7 @@ Maoist/JNSgMaori/NOSgJMapplethorpe/gMaputo/Og-Mar/ONSg+Mar/ONSg4Mar-a-Lago/OgMara/ONgMaracaibo/Og@@ -6724,7 +6724,7 @@ McNeil/OgMcPherson/OgMcQueen/OgMcVeigh/Og-Md/ # Mendelevium+Md/4 # MendeleviumMe/NOIMead/OgMeade/Og@@ -6860,7 +6860,7 @@ Meyer/OgSMeyerbeer/gMeyers/OgMfume/g-Mg/ # Magnesium+Mg/4 # MagnesiumMgrMiB # mebibyteMiG/Ng@@ -6995,9 +6995,9 @@ Mizar/OgMk/NMlle/NMme/NS-Mn/ # Manganese+Mn/4 # ManganeseMnemosyne/Og-Mo/ # Molybdenum+Mo/4 # MolybdenumMobil/OgMobile/OgMobutu/g@@ -7036,7 +7036,7 @@ Molokai/OgMolotov/ONgV # ministerMoluccas/OgMombasa/Og-Mon/NOSg # city+Mon/NOSg4Mona/OgMonacan/JNMonaco/Og@@ -7153,7 +7153,7 @@ Mozilla/g # companyMr/NSgMs/NSMsgr-Mt/ # Meitnerium+Mt/4 # MeitneriumMuawiya/gMubarak/Og # presidentMueller/Og@@ -7228,7 +7228,7 @@ Myrtle/OgMysore/Og # old name of karnataka state and mysuru cityMyst/gMysuru/Og-N/ # Nitrogen+N/4 # NitrogenN'Djamena/O # capital of ChadNAACP/OgNAFTA/Og # trade agreement@@ -7241,12 +7241,12 @@ NB/JNONBA/Og # sports organizationNBC/ONgJNBS-NC/ONJ # US state (North Carolina)+NC/ON4J # US state (North Carolina)NCAA/OgNCO/N-ND/ONJ # US state (North Dakota)+ND/ON4J # US state (North Dakota)NDA/NSg # non-disclosure agreement-NE/ONgJ # US state (Nebraska)+NE/ONg4J # US state (Nebraska)NEC/Og # electronics companyNEH/ONES/Ng # game console@@ -7254,14 +7254,14 @@ NF/ONJNFC/ON # near-field communicationNFL/ONg # sports organizationNGO/NgS # non-government organization-NH/ONVJ # US state (New Hampshire)+NH/ON4VJ # US state (New Hampshire)NHL/NOg # sports organizationNHS/OgNIH/OJ # National Institutes of HealthNIMBY/NJ # not in my backyard-NJ/OJ # US state (New Jersey)+NJ/O4J # US state (New Jersey)NLRB/O-NM/ONJV # US state (New Mexico)+NM/ON4JV # US state (New Mexico)NOR gate/NgSNORAD/OgNP/ON@@ -7280,16 +7280,16 @@ NSX/Ng # carNT/ONNTFS/Ng # file systemNTSC/Ng # television standard-NV/ONJ # US state (Nevada)+NV/ON4J # US state (Nevada)NVIDIA/g # FIXME! elsewhere we have NvidiaNVMe/ONW/ONgNWT/O-NY/O # US state (New York)+NY/O4 # US state (New York)NYC/ONYSE/O # stock exchangeNZ/Og # New Zealand-Na/ # Sodium+Na/4 # SodiumNabisco/g # companyNabokov/gNader/Og@@ -7365,10 +7365,10 @@ Nazareth/OgNazca/OgNazi/NOSgJNazism/NgS-Nb/ # Niobium-Nd/ # Neodymium+Nb/4 # Niobium+Nd/4 # NeodymiumNdjamena/g-Ne/ # Neon+Ne/4 # NeonNeal/OgNeanderthal/JNSgNeapolitan/JNOg@@ -7442,7 +7442,7 @@ New Zealand/OgNexis/gNgaliema/gNguyen/Og-Ni/ # Nickel+Ni/4 # NickelNiagara/ONgNiamey/OgNibelung/Ng@@ -7502,7 +7502,7 @@ Nita/gNivea/gNixon/ONgNkrumah/g-No/ # Nobelium+No/4 # NobeliumNoDoz/g # trademarkNoah/ONgNobel/ONg # prize@@ -7554,7 +7554,7 @@ Nottingham/OgNouakchott/OgNouméa/OgNoumea/Og-Nov/Og+Nov/Og4Nova/ONgNovartis/gNovember/NOSg@@ -7566,7 +7566,7 @@ Novosibirsk/OgNoxzema/gNoyce/OgNoyes/Og-Np/ # Neptunium+Np/4 # NeptuniumNubia/OgNubian/NgJNukualofa/Og@@ -7582,7 +7582,7 @@ NutraSweet/g # trademarkNyQuil/g # trademarkNyasa/gNyerere/Og-O/NOSgPJ # Oxygen+O/NOSg4PJ # OxygenO'Brien/OgO'Casey/OgO'Connell/Og@@ -7604,15 +7604,15 @@ OE/ONJVOECD/Og # organizationOED/Og # dictionaryOEM/JNgS # original equipment manufacturer-OH/ON # US state (Ohio)+OH/ON4 # US state (Ohio)OHSA/g # lawOJ/NJ-OK/NOSgVdGJ # US state (Oklahoma)+OK/NOSg4VdGJ # US state (Oklahoma)OLED/Ng # organic light-emitting diodeOMB/OgOMG # exclamationOPEC/Og # organization-OR/CNO # Oregon+OR/CNO4 # OregonOR gate/NgSOS/Ng # removed `O` proper noun and `J` adjective flagsOS X/Og # before macOS@@ -7643,7 +7643,7 @@ Oceania/OgOceanside/OOceanus/OgOchoa/Og-Oct/Og+Oct/Og4Octavia/OgOctavian/OgOctavio/g@@ -7780,7 +7780,7 @@ Orval/gOrville/OgOrwell/OgOrwellian/Jg-Os/ # Osmium+Os/4 # OsmiumOsage/OgSOsaka/Og # cityOsbert/g@@ -7822,10 +7822,10 @@ Ozark/ONSgOzarks/NOgOzymandias/NgOzzie/ONgJ-P/ # Phosphorus+P/4 # PhosphorusP.P.S. # post-postscriptP.S. # postscript-PA/ONgJ # US state (Pennsylvania)+PA/ONg4J # US state (Pennsylvania)PAC/NOg # political action committeePARC/S # xeroxPASCAL # cf. pascal, Pascal@@ -7866,7 +7866,7 @@ PP/NOPPE/Ng # personal protective equipmentPPS/N # post-postscript; other meanings?PR/NgS # public relations; pull request; Puerto Rico-PRC/ONg # mainland China+PRC/ONg4 # mainland ChinaPRO/NPS/ONgJ # postscript; multiple meanings as implied by the attributes?PST/ONg@@ -7877,7 +7877,7 @@ PTO/ONPVC/Ng # plasticPW/ONPX/N-Pa/ # Protactinium+Pa/4 # ProtactiniumPaar/OgPablo/OgPablum/Og@@ -8008,8 +8008,8 @@ Pawnee/ONSgJPax Americana/OgPayPal/ONgV # companyPayne/Og-Pb/ # Lead-Pd/ # Palladium+Pb/4 # Lead+Pd/4 # PalladiumPeabody/OgPeace/ONgPeale/Og@@ -8217,8 +8217,8 @@ Plutarch/ONgPluto/OgPlymouth/ONgPlymouths/ON9-Pm/ # Promethium-Po/ # Polonium+Pm/4 # Promethium+Po/4 # PoloniumPocahontas/ONgPocatello/OgPocono/Sg@@ -8378,11 +8378,11 @@ Pryor/OgPsalms/OgPsalter/SgPsyche/Og-Pt/ # Platinum+Pt/4 # PlatinumPtah/OgPtolemaic/JgPtolemy/OgS-Pu/ # Plutonium+Pu/4 # PlutoniumPuccini/OgPuck/OgPuckett/Og@@ -8498,7 +8498,7 @@ RF/NORFC/ONSRFD/JNORGB # colour model-RI/ON # US state (Rhode Island)+RI/ON4 # US state (Rhode Island)RIF/NVRIFA/OgRIP/ON@@ -8520,9 +8520,9 @@ RSV/ONRSVP/NOVRSVP'd/VtTRSVPed/VtT-RTFM/+RTFM/4RV/ONSgV-Ra/ # Radium+Ra/4 # RadiumRabat/OgRabelais/OgRabelaisian/Jg@@ -8592,9 +8592,9 @@ Rayburn/ONgRayleigh/OgRaymond/OgRaymundo/g-Rb/ # Rubidium-Rd-Re/ # Rhenium+Rb/4 # Rubidium+Rd/4+Re/4 # RheniumReading/OgReagan/OgReaganomics/Ng@@ -8669,7 +8669,7 @@ Reykjavik/OgReyna/gReynaldo/gReynolds/Og-Rf/ # Rutherfordium+Rf/4 # RutherfordiumRhea/OgRhee/OgRheingau/g@@ -8735,7 +8735,7 @@ Riverside/OgRiviera/OgSRiyadh/OgRizal/Og-Rn/ # Radon+Rn/4 # RadonRoach/OgRoanoke/OgRob/Og@@ -8887,7 +8887,7 @@ Royal/ONgJRoyce/OgRozelle/OgRte-Ru/ # Ruthenium+Ru/4 # RutheniumRubaiyat/gRubbermaid/gRuben/OgS@@ -8952,10 +8952,10 @@ SASE/NSAT/NgSSATA/Ng # computing standardSBA/NO-SC/JNOg # US state (South Carolina)+SC/NOg4J # US state (South Carolina)SCSI/Og # computing standardSCOTUS/Og # Supreme Court Of The United States-SD/ON # US state (San Diego)+SD/ON4 # US state (San Diego)SDI/NO # strategic defense initiativeSE/NOgJSEATO/O@@ -9133,7 +9133,7 @@ Saskatoon/OgSasquatch/NgSSassanian/JNgSassoon/Og-Sat/Ng+Sat/Ng4Satan/ONgSatanism/NmgSatanist/Ng@@ -9156,8 +9156,8 @@ Sawyer/OgSaxon/NOSgJSaxony/ONgSayers/Og-Sb/ # Antimony-Sc/ # Scandium+Sb/4 # Antimony+Sc/4 # ScandiumScala/OgScanScandinavia/Og@@ -9240,7 +9240,7 @@ Sculley/OgScylla/OgScythia/OgScythian/JNOg-Se/ # Selenium+Se/4 # SeleniumSeaborg/OgSeagate/Og # hard drive companySeagram/Og@@ -9296,7 +9296,7 @@ Sennacherib/OgSennett/OgSensurround/OgSeoul/Og-Sep/O+Sep/O4Sephardi/NgSepoy/gSept/Og@@ -9435,7 +9435,7 @@ Shropshire/ONgShula/OgShylock/ONgShylockian/g-Si/ # Silicon+Si/4 # SiliconSiam/Og # old name of ThailandSiamese/JONgSibelius/g@@ -9524,7 +9524,7 @@ Slovene/JNOSgSlovenia/OgSlovenian/JNgSSlurpee/Ng-Sm/ # Samarium+Sm/4 # SamariumSmall/OgSmetana/OgSmirnoff/ONg@@ -9536,7 +9536,7 @@ Smolensk/OgSmollett/OgSmuts/gSmyrna/O-Sn/ # Tin+Sn/4 # TinSnake/OgSnapple/gSnead/Og@@ -9650,10 +9650,10 @@ Sputnik/NOgSqSquanto/gSquibb/Og-Sr/ # Strontium+Sr/4 # StrontiumSrinagar/OgSrivijaya/g-St/N+St/N4Sta/NOStacey/OgStaci/Og@@ -9789,7 +9789,7 @@ Summer/OgSSummers/OgSumner/OgSumter/Og-Sun/ONSg+Sun/ONSg4Sunbeam/OgSunbelt/NgSundanese/NOgJ@@ -9885,7 +9885,7 @@ TKO/ONgTLC/NOgTLS/NOTM/N-TN/ON # US state (Tennessee)+TN/ON4 # US state (Tennessee)TNT/NOgTOC/NgS # table of contentsTOEFL/N@@ -9896,8 +9896,8 @@ TVA/OTVR/NOSg # car companyTWA/ONgTWX/O-TX/ONV # US state (Texas)-Ta/ # Tantalum+TX/ON4V # US state (Texas)+Ta/4 # TantalumTabasco/ONSgTabatha/OgTabernacle/Sg@@ -9997,9 +9997,9 @@ Taurus/ONSgTavares/OgTawney/OgTaylor/Og-Tb/ # Terbium+Tb/4 # TerbiumTbilisi/Og-Tc/ # Technetium+Tc/4 # TechnetiumTchaikovsky/OgTeasdale/OgTechnicolor/NgJ@@ -10061,7 +10061,7 @@ Texaco/g # companyTexan/JNgSTexarkana/OgTexas/Og-Th/ # Thorium+Th/4 # ThoriumThackeray/OgThad/OgThaddeus/Og@@ -10120,7 +10120,7 @@ Thorpe/OgThoth/OgThrace/OgThracian/JNOg-Thu/NO+Thu/NO4Thucydides/OgThule/OgThunderbird/NOSg # car model@@ -10130,8 +10130,8 @@ Thurman/OgThurmond/OgThursday/NSgThutmose/Og-Ti/ # Titanium-TiB # tebibyte+Ti/4 # Titanium+TiB/4 # tebibyteTia/OgTianjin/OgTiber/Og@@ -10181,10 +10181,10 @@ Tito/Og # presidentTitograd/Og # old name of PodgoricaTitus/OgTitusville/Og-Tl/ # Thallium+Tl/4 # ThalliumTlaloc/OgTlingit/NOgJ-Tm/ # Thulium+Tm/4 # ThuliumTobago/OgTobit/ONgToby/ONg@@ -10315,7 +10315,7 @@ Tsiolkovsky/OgTsitsihar/OgTsongkhapa/gTswana/NOg-Tu/NOg # former symbol for thulium, now Tm+Tu/NOg4 # former symbol for thulium, now TmTuamotu/JgTuareg/NOgTubman/Og@@ -10323,7 +10323,7 @@ Tucker/OgTucson/OgTucuman/gTudor/NSgJ # period-Tue/NOS+Tue/NOS4Tues/NgTuesday/NgSTulane/g@@ -10389,7 +10389,7 @@ Tyree/OgTyrolean/JNTyrone/ONgTyson/Og-U/ # Uranium; removed `1`noun `5`adj. `2`proper noun `+`prep., was interfering with linter heuristics. I only know this as an abbreviation for university+U/4 # Uranium; removed `1`noun `5`adj. `2`proper noun `+`prep., was interfering with linter heuristics. I only know this as an abbreviation for universityU-turn/NgSVdGU.K./OgU.S./Og # United States@@ -10421,7 +10421,7 @@ USAID/Og # agencyUSB/ONSgUSCG/OUSCIS/O # immigration agency-USD/Nmg # currency symbol for US dollars+USD/Nmg4 # currency symbol for US dollarsUSDA/OgUSIA/OUSMC/O@@ -10431,7 +10431,7 @@ USP/ONJUSPS/OUSS/NOUSSR/Og-UT/ONg # US state (Utah)+UT/ONg4 # US state (Utah)UTC/OUTF-16/NgUTF-32/Ng@@ -10506,12 +10506,12 @@ Utrillo/gUzbek/NOgJUzbekistan/OgUzi/NSg-V/ # Canadium+V/4 # VanadiumV10/NgSV12/NgSV6/NgSV8/NOSg-VA/ONJ # US state (Virginia)+VA/ON4J # US state (Virginia)VAT/Ng # taxVAX # old computerVAXes@@ -10537,7 +10537,7 @@ VMS/g # operating systemVOA/ON # voice of americaVP/NO # vice presidentVRAM/Ng # video memory-VT/ONJV # US state (Vermont)+VT/ON4JV # US state (Vermont)VTOL/N # vertical takeoff and landingVW/OgS # car brand; cf. VolkswagenVacaville/Og@@ -10724,25 +10724,25 @@ Vulcan/ONgVulgVulgate/OgSW12/NSg-WA/ON # US state (Washington)+WA/ON4 # US state (Washington)WAC/ONWASP/NgWATS/NgWC/NWHO/Og-WI/O # US state (Wisconsin)+WI/O4 # US state (Wisconsin)WMD/NWNW/NgJWP/ONWSW/NgJWTF/NSWTO/O-WV/O # US state (West Virginia)+WV/O4 # US state (West Virginia)WW/NOWWI/OWWII/OWWW/Og-WY/O # US state (Wyoming)+WY/O4 # US state (Wyoming)WYSIWYG/NWabash/OgWac/N@@ -10828,7 +10828,7 @@ Webb/OgWeber/OgWebern/gWebster/OgS-Wed/Ng+Wed/Ng4Weddell/OgWedgwood/OgWednesday/NOSg@@ -11039,7 +11039,7 @@ Xamarin/gXanadu/ONgXanthippe/NgXavier/Og-Xe/ # Xenon+Xe/4 # XenonXenakis/OgXenia/OgXenophon/Og@@ -11059,7 +11059,7 @@ Xizang/OgXmas/OgSVXochipilli/gXuzhou/Og-Y/ # Yttrium+Y/4 # YttriumYMCA/ONgYMHA/OYMMV/@@ -11095,7 +11095,7 @@ Yaroslavl/OgYataro/gYates/OgYauco/Og-Yb/ # Ytterbium+Yb/4 # YtterbiumYeager/OgYeats/OgYekaterinburg/Og@@ -11213,7 +11213,7 @@ Zionism/NwSgZionist/NSgJZiploc/Ng # trademarkŽižek/Og # slavoj --Zn/ # Zinc+Zn/4 # ZincZoë/OgZoe/OgZola/Og@@ -11226,7 +11226,7 @@ Zoroastrian/NgSJZoroastrianism/OgSwZorro/ONgZosma/Og-Zr/ # Zirconium+Zr/4 # ZirconiumZsigmondy/gZubenelgenubi/OgZubeneschamali/Og@@ -11688,7 +11688,7 @@ adiabatic/~JNadieu/NgSadios/NVbadipose/~JN-adj/~N+adj/~4Nadjacency/~Ngadjacent/~JYNPadjectival/JYN@@ -11786,7 +11786,7 @@ adultery/~NSgadulthood/~Nmgadumbrate/VGdSnadumbration/Ng-adv/~N+adv/~4Nadvance/~VdGSNgJLadvancement/~NSgadvantage/~NwSgVdGE@@ -13192,7 +13192,7 @@ arrant/Jarras/~NgSarray/~NgSVGdEarrears/Ng-arrest/~NwgSVGdr+arrest/~NwgS>ZVGdrarrhythmia/~Nmgarrhythmic/Jarrhythmical/J@@ -15213,6 +15213,7 @@ blueberry/~NwSgJVbluebird/~NgSbluebonnet/NSgbluebottle/NSg+fluefin/NSg # type of tunabluefish/N09gS # singular and plural, also has a plural in -sbluegill/NgSbluegrass/~Ng@@ -22720,7 +22721,7 @@ e-book/NgSe-commerce/Nmge'en/e'er/-e.g./~N+e.g./~4NeBay/OgVeMusic/geSIM/NgS@@ -23848,7 +23849,7 @@ estrus/NgSestuary/~NSget al./~eta/~NSg-etc./~ # most dictionary only list it with the final dot+etc./4~ # most dictionary only list it with the final dotetch/Vd>GSNZzetcher/Ngetching/~NgV@@ -29471,7 +29472,7 @@ hysteric/JNSghysterical/~JYhysterics/Ngi/~-i.e./~+i.e./4~iMac/ONgSiOS/OgiPad/ONgS@@ -51136,7 +51137,8 @@ undersigned/JNgundersized/Junderskirt/NSgundersold/VtTdJ-underspent/V+underspecify/VSdG+underspent/VtTunderstaff/VSdGunderstand/~VbSGBzunderstandably/~Ry@@ -51146,12 +51148,12 @@ understatement/NSgunderstood/~JVtTunderstudy/~VGdSNgundertake/~VG>SNZz-undertaken/~V+undertaken/~VTundertaker/~NgSundertaking/~NgVunderthings/Ngundertone/NgSV-undertook/~V+undertook/~Vtundertow/VSNgunderused/JVunderutilised/JV!_₹@@ -51162,14 +51164,14 @@ underwater/~JNVunderway/~Nunderwear/~Nmgunderweight/JNgV-underwent/~V+underwent/~Vtunderwhelm/VdGSunderwire/NSVdunderworld/~NgSunderwrite/VG>SZunderwriter/Ng-underwritten/V-underwrote/V+underwritten/VT+underwrote/Vtundesirable/~JNgSundiagnosed/Jundies/NgV@@ -51995,7 +51997,7 @@ vertices/~N9vertiginous/Jvertigo/~Nmgverve/~Ng-very/~R%J>^ # very is an adverb of debree but not an adverb of manner+very/~R%J>^ # very is an adverb of degree but not an adverb of mannervesicle/~NSgvesicular/Jvesiculate/VJ@@ -52361,7 +52363,7 @@ voyageur/NSgvoyeur/NgSvoyeurism/Ngvoyeuristic/J-vs./~ # versus+vs./4~ # versusvtable/NgSvulcanisation/Ng!_₹vulcanise/VGdS!_₹@@ -53048,6 +53050,7 @@ wholesomely/Rywholesomeness/NmgUwholewheat/Jwholly/~Ry+wholphin/NSgwhom/~Iwhomever/Iwhomsoever/Idiff --git a/harper-core/src/dict_word_metadata.rs b/harper-core/src/dict_word_metadata.rsindex 99af969cd..4e1e0e0c5 100644--- a/harper-core/src/dict_word_metadata.rs+++ b/harper-core/src/dict_word_metadata.rs@@ -33,6 +33,8 @@ pub struct DictWordMetadata {pub preposition: bool,/// Whether the word is an offensive word.pub swear: Option<bool>,+ /// Whether the word is an abbreviation of any kind.+ pub abbreviation: Option<bool>,/// The dialects this word belongs to./// If no dialects are defined, it can be assumed that the word is/// valid in all dialects of English.@@ -679,6 +681,11 @@ impl DictWordMetadata {matches!(self.swear, Some(true))}+ /// Abbreviation is orthogonal to POS+ pub fn is_abbreviation(&self) -> bool {+ matches!(self.abbreviation, Some(true))+ }+// Orthographic queries/// Does the metadata for this word cover an all-lowercase variant? (e.g., "hello")@@ -781,6 +788,7 @@ impl DictWordMetadata {self.dialects |= other.dialects;self.orth_info |= other.orth_info;self.swear = self.swear.or(other.swear);+ self.abbreviation = self.abbreviation.or(other.abbreviation);self.common |= other.common;self.derived_from = self.derived_from.or(other.derived_from);self.pos_tag = self.pos_tag.or(other.pos_tag);diff --git a/harper-core/src/token_kind.rs b/harper-core/src/token_kind.rsindex 8a1aca58f..8370380fc 100644--- a/harper-core/src/token_kind.rs+++ b/harper-core/src/token_kind.rs@@ -132,6 +132,7 @@ impl TokenKind {// Generic word methodsis_swear,+ is_abbreviation,is_likely_homograph,// Orthography methods