Skip to content

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.json
index 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.dict
index 197ccf118..99b7d7d61 100644
--- a/harper-core/dictionary.dict
+++ b/harper-core/dictionary.dict
@@ -37,9 +37,9 @@ AFT/O
AI/NwSg # artificial intelligence
A.I./NwSg
AIDS/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/ONgJ
AMA/ON
AMD/NOg
@@ -54,7 +54,7 @@ APC/NOJ
API/NSg # application programming interface, cf. ABI
APO/N
APR/N
-AR/JNO # US state (Arkansas)
+AR/JNO4 # US state (Arkansas)
ARC/NOJ
ASAP/ # as soon as possible
ASCII/OgS
@@ -72,7 +72,7 @@ AVI/O # media format
AWACS/Ng
AWOL/JNg # absent without leave
AWS/ONg
-AZ/Og # US state (Arizona)
+AZ/Og4 # US state (Arizona)
AZT/Ng # drug
Aachen/Og
Aaliyah/Og
@@ -101,7 +101,7 @@ Absalom/Og
Abuja/Og
Abyssinia/OgJ
Abyssinian/JNOg
-Ac/ # Actinium
+Ac/4 # Actinium
Acadia/Og
Acapulco/Og
Accenture/g
@@ -178,7 +178,7 @@ Afro/NSg
Afrocentric/J
Afrocentrism/Ng
Afrofuturism/Ng
-Ag/ # Silver
+Ag/4 # Silver
Agamemnon/Og
Agana/O
Agassi/Og
@@ -222,7 +222,7 @@ Akita/ONg
Akiva/Og
Akkad/Og
Akron/Og
-Al/Og # aluminium, aluminum; given name
+Al/Og4 # aluminium, aluminum; given name
Ala/NOS
Alabama/NOg
Alabaman/JNgS
@@ -370,7 +370,7 @@ Alyce/g
Alyson/Og
Alyssa/Og
Alzheimer/Ng
-Am/ # Americium
+Am/4 # Americium
Amadeus/Og
Amado/Og
Amalia/Og
@@ -565,7 +565,7 @@ Apple/ONg
Appleseed/g
Appleton/Og
Appomattox/Og
-Apr/Og
+Apr/Og4
April/OgS
Apuleius/Og
Aquafresh/g
@@ -575,7 +575,7 @@ Aquila/Og
Aquinas/Og
Aquino/Og
Aquitaine/Og
-Ar/ # Argon
+Ar/4 # Argon
Ara/Og
Arab/JNSg
Arabia/Og
@@ -673,7 +673,7 @@ Artie/Og
Arturo/g
Aruba/Og
Aryan/NOSgJ
-As/ # Arsenic
+As/4 # Arsenic
Asahi/Og
Asama/g
Ascella/Og
@@ -756,7 +756,7 @@ Attlee/Og
Attn
Attucks/g
Atwood/Og
-Au/ # Gold
+Au/4 # Gold
Aubrey/Og
Auburn/Og
Auckland/Og
@@ -766,7 +766,7 @@ Audion/g
Audra/Og
Audrey/Og
Audubon/Og
-Aug/Og
+Aug/Og4
Augean/Jg
Augsburg/Og
August/OgS
@@ -833,7 +833,7 @@ Azov/Og
Aztec/NOSgJ # ancient civilization
Aztecan/JNg
Aztlan/Og
-B/ # Boron
+B/4 # Boron
B-52/NgS
BA/NOgJ
BASIC/OgS
@@ -866,7 +866,7 @@ BSD/ONSg
BTU/N
BTW/
BYOB/
-Ba/ # Barium
+Ba/4 # Barium
Baal/OgS
Baath/Og
Baathist/JNg
@@ -1038,7 +1038,7 @@ Baylor/Og
Bayonne/Og
Bayreuth/Og
Baywatch/g
-Be/ # Beryllium
+Be/4 # Beryllium
Beach/Og
Beadle/Og
Beamer/NgS # nickname for BMW
@@ -1222,7 +1222,7 @@ Bhopal/Og
Bhutan/Og
Bhutanese/JONg
Bhutto/Og
-Bi/ # Bismuth
+Bi/4 # Bismuth
Bialystok/Og
Bianca/Og
Bib
@@ -1262,7 +1262,7 @@ BitTorrent/Og
Bizet/Ng
Bjerknes/g
Bjork/Og
-Bk/ # Berkelium
+Bk/4 # Berkelium
BlackBerry/NgV
Blackbeard/Og
Blackburn/Og
@@ -1407,7 +1407,7 @@ Bowman/Og
Boyd/Og
Boyer/Og
Boyle/Og
-Br/ # Bromine
+Br/4 # Bromine
Brad/OgY
Bradbury/ONg # ray =
Braddock/Og
@@ -1643,8 +1643,8 @@ Byron/Og
Byronic/Jg
Byzantine/JNgS
Byzantium/ONg
-C/NOg # Carbon
-CA/ON # US state (California)
+C/NOg4 # Carbon
+CA/ON4 # US state (California)
CAD/Ng # computer-aided design; canadian dollar
CAI/NO
CAM/NO
@@ -1677,7 +1677,7 @@ CNC'd/VtT # past
CNCing/NV6 # present, gerund
CNN/ONSg # media company; convolutional neural network
CNS/Ng
-CO/ONg # US state (Colorado)
+CO/ONg4 # US state (Colorado)
COBOL/OgS # programming language
COD/ON
COFF/ONg # common object file format
@@ -1696,13 +1696,13 @@ CRT/NSg # cathode ray tube
CSS/NOg
CST/ONg
CSV/Ng # data file format
-CT/ONgVJ # US state (Connecticut)
+CT/ONg4VJ # US state (Connecticut)
CTO/NOgS # chief technology officer
CUDA/ONg # computing architecture
CV/NOSJ # curriculum vitae
CVS/NOg # version control
CZ/N
-Ca/ # Calcium
+Ca/4 # Calcium
Cabernet/g
Cabot/Og
Cabral/g
@@ -1947,9 +1947,9 @@ Cayenne/Og
Cayman/JOg
Cayuga/NOSg
Cayuse/N
-Cb/
-Cd/ # Cadmium
-Ce/ # Cerium
+Cb/4 # Columbium
+Cd/4 # Cadmium
+Ce/4 # Cerium
Ceausescu/g
Cebu/Og
Cebuano/OgJ
@@ -1987,7 +1987,7 @@ Cetus/Og
Ceylon/ONg # old name of Sri Lanka
Ceylonese/JN
Cezanne/g
-Cf/ # Californium
+Cf/4 # Californium
Ch'in/Og
Chablis/ONg
Chad/ONg
@@ -2189,7 +2189,7 @@ Citibank/Og
Citigroup/Og
Citroën/Og
Citroen/Og
-Cl/ # Chlorine
+Cl/4 # Chlorine
Claiborne/Og
Clair/Og
Claire/Og
@@ -2249,9 +2249,9 @@ Clovis/Og
Clyde/Og
Clydesdale/NOg
Clytemnestra/Og
-Cm/ # Curium
+Cm/4 # Curium
Cmdr/N
-Co/ # Cobalt
+Co/4 # Cobalt
Cobain/Og
Cobb/Og
Cochabamba/Og
@@ -2452,7 +2452,7 @@ Coy/Og
Coyle/Og
Cozumel/Og
Cpl/N
-Cr/ # Chromium
+Cr/4 # Chromium
Crabbe/Og
Craft/Og
Craig/Og
@@ -2513,7 +2513,7 @@ Csonka/g
Ct/N
Ctesiphon/Og
Cthulhu/Og
-Cu/ # Copper
+Cu/4 # Copper
Cuba/Og
Cuban/NSgJ
Cuchulain/g
@@ -2564,11 +2564,11 @@ DAR/O
DARPA/Og
DAT/Ng
DBMS/Ng
-DC/ONgJV # US District of Columbia
+DC/ONg4JV # US District of Columbia
DD/NOgJ
DDS/Ng
DDT/NS
-DE/ON # US state (Delaware)
+DE/ON4 # US state (Delaware)
DEA/ON
DEC/NOSd
DF/Og # Distrito Federal, see also CDMX
@@ -2724,7 +2724,7 @@ Debouillet/g
Debra/Og
Debs/Og
Debussy/g
-Dec/Og
+Dec/Og4
Decalogue/ONg
Decatur/Og
Decca/Og
@@ -3039,7 +3039,7 @@ Dvina/g
Dvorak/OgJ
Dwayne/Og
Dwight/Og
-Dy/ # Dysprosium
+Dy/4 # Dysprosium
Dyer/Og
Dylan/Og
DynamoDB/g
@@ -3278,7 +3278,7 @@ Epsom/Og
Epson/g
Epstein/OgV
Equuleus/Og
-Er/ # Erbium
+Er/4 # Erbium
Erasmus/ONg
Erato/Og
Eratosthenes/Og
@@ -3355,7 +3355,7 @@ Eton/Og
Etruria/Og
Etruscan/JNOg
Etta/Og
-Eu/ # Europium
+Eu/4 # Europium
Eucharist/NgS
Eucharistic/J
Euclid/Og
@@ -3421,7 +3421,7 @@ Eyre/Og
Eysenck/g
Ezekiel/Og
Ezra/Og
-F/ # Fluorine
+F/4 # Fluorine
F1/9g
FA/Og # Football Association
FAA/O
@@ -3437,7 +3437,7 @@ FFT/NgS # fast Fourier transform
FHA/Og
FICA/Og
FIFO/N
-FL/NO # US state (Florida)
+FL/NO4 # US state (Florida)
FLOSS/ONV # free libre open source software
FM/NSg
FNMA/Og
@@ -3506,8 +3506,8 @@ Fawkes/Og
Fay/Og
Faye/Og
Fayetteville/Og
-Fe/ # Iron
-Feb/Og
+Fe/4 # Iron
+Feb/Og4
February/OgS
Fed/OgS
FedEx/OgV
@@ -3604,7 +3604,7 @@ Flossie/Og
Flowers/Og
Floyd/Og
Flynn/Og
-Fm/ # Fermium
+Fm/4 # Fermium
Foch/ONg
Fokker/ONg
Foley/Og
@@ -3634,7 +3634,7 @@ Fourneyron/g
Fourth/O
Fowler/Og
Fox/NOSg
-Fr/ # Francium
+Fr/4 # Francium
Fragonard/g
Fran/Og
France/OgS
@@ -3695,7 +3695,7 @@ Freud/Og
Freudian/JNg
Frey/Og
Freya/Og
-Fri/Ng
+Fri/Ng4
Friday/NSg
Fridman/Og
Frieda/Og
@@ -3746,7 +3746,7 @@ Fushun/Og
Fuzhou/Og
Fuzzbuster/g
G/Ng>nB
-GA/ON # US state (Georgia)
+GA/ON4 # US state (Georgia)
GAO/O
GATT/Og
GB/NOg
@@ -3784,7 +3784,7 @@ GTR/NgS
GTS/NSg
GU/N
GUI/ONgS
-Ga/ # Gallium
+Ga/4 # Gallium
Gable/Og
Gabon/Og
Gabonese/NgJ
@@ -3891,10 +3891,10 @@ Gayle/Og
Gaza/Og
Gazan/JOgS
Gaziantep/Og
-Gd/ # Gadolinium
+Gd/4 # Gadolinium
Gdańsk/Og
Gdansk/Og
-Ge/ # Germanium
+Ge/4 # Germanium
Geffen/Og
Gehenna/Og
Gehrig/Og
@@ -4247,7 +4247,7 @@ HDMI/O
HDTV/N
HF/NgJ
HHS/ON
-HI/ON # US state (Hawaii)
+HI/ON4 # US state (Hawaii)
HIMARS/N
HIV/Ng
HM/NO
@@ -4424,7 +4424,7 @@ Hayworth/Og
Hazel/Og
Hazleton/Og
Hazlitt/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+possessive
Head/Og
Healey/Og
Healy/Og
@@ -4561,8 +4561,8 @@ Heyerdahl/g
Heywood/Og
Hezbollah/Og
Hezekiah/Og
-Hf/ # Hafnium
-Hg/ # Mercury
+Hf/4 # Hafnium
+Hg/4 # Mercury
Hialeah/Og
Hiawatha/Og
Hibernia/Og
@@ -4618,7 +4618,7 @@ Hitchcock/Og
Hitler/ONSg
Hittite/NOSgJ
Hmong/NOgJ
-Ho/O # Holmium; Ho Chi Minh
+Ho/O4 # Holmium; Ho Chi Minh
Hobart/Og
Hobbes/Og
Hobbs/Og
@@ -4785,20 +4785,20 @@ Hymen/Og
Hyperion/Og
Hyundai/Ng
Hz/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~subject
I'd/~
I'd've/
I'll/~
I'm/~
I've/~
-IA/ON # US state (Iowa)
+IA/ON4 # US state (Iowa)
IBM/ONg
IC/NgS # integrated circuit
ICBM/NSg
ICC/O # International Criminal Court
ICQ/ONV # chat protocol
ICU/NO # Unicode library
-ID/NOSgVJ # US state (Idaho)
+ID/NOSg4VJ # US state (Idaho)
IDE/N
IDF/Og # Israel's military
IE/ONJ
@@ -4806,12 +4806,12 @@ IED/N # improvised explosive device
IEEE/O # standards organization
IIRC # If I recall correctly
IKEA/Og # furniture company
-IL/NO # US state (Illinois)
+IL/NO4 # US state (Illinois)
IMF/Og # International Monetary Fund
IMHO/
IMNSHO/
IMO/NO
-IN/ON # US state (Indiana)
+IN/ON4 # US state (Indiana)
ING/g
INRI
INS/NO
@@ -4827,7 +4827,7 @@ IRS/ONg
ISBN/NgS
ISDN/Ng # telephone standard
ISIS/O
-ISO/ONgP # standards organization
+ISO/ONgSP # standards organization, optical disk image format
ISP/N
ISS/NO
IT/N # removed `5`. nouns can qualify nouns. makes `it` an adjective which interferes with heuristics
@@ -4878,7 +4878,7 @@ Imhotep/Og
Imodium/g
Imogene/Og
Imus/Og
-In/ # Indium
+In/4 # Indium
Ina/Og
Inc/J
Inca/NSg
@@ -4938,7 +4938,7 @@ Ipswich/O
Iqaluit/Og
Iqbal/Og
Iquitos/Og
-Ir/ # Iridium
+Ir/4 # Iridium
Ira/Og
Iran/Og
Iranian/NOSgJ
@@ -5071,7 +5071,7 @@ James/Og
Jamestown/Og
Jami/g
Jamie/Og
-Jan/Og
+Jan/Og4
Jana/Og
Janacek/g
Jane/ONg
@@ -5289,7 +5289,7 @@ Judith/Og
Judson/Og
Judy/ONg
Juggernaut/Og
-Jul/O
+Jul/O4
Jules/Og
Julia/Og
Julian/OgJ
@@ -5302,7 +5302,7 @@ Julio/g
Julius/Og
Julliard/Og
July/OgS
-Jun/Og
+Jun/Og4
June/OgS
Juneau/Og
Juneteenth/gO
@@ -5321,7 +5321,7 @@ Justine/Og
Justinian/OgJ
Jutland/Og
Juvenal/Og
-K/ # Potassium
+K/4 # Potassium
K-pop/Nmg
KB/NOg # kilobyte, cf. Kb
KC/ON
@@ -5331,8 +5331,8 @@ KIA/NJ # killed in action
KKK/Og
KO/NgV
KP/N
-KS/ONV # US state (Kansas)
-KY/O # US state (Kentucky)
+KS/ON4V # US state (Kansas)
+KY/O4 # US state (Kentucky)
Kaaba/Og
Kabul/Og
Kafka/Og # franz -
@@ -5631,7 +5631,7 @@ Kosygin/g
Kotlin/Og
Koufax/g
Kowloon/Og
-Kr/ # Krypton
+Kr/4 # Krypton
Kraft/Og
Krakatoa/Og
Kraken/OgS
@@ -5700,7 +5700,7 @@ L'Amour/g
L'Enfant
L'Oreal/g
L'Ouverture/g
-LA/NO # US state (Louisiana)
+LA/NO4 # US state (Louisiana)
LAN/Ng
LBJ/NOg
LC/NJ
@@ -5726,7 +5726,7 @@ LPN/NSg
LSAT
LSD/Ng
LVN/N
-La/ # Lanthanum
+La/4 # Lanthanum
Lab/NO
Laban/Og
Labor/Og_ # the australian political party doesn't use the normal australian spelling of 'labour'
@@ -5966,7 +5966,7 @@ Lexington/Og
Lexus/ONSg
Lhasa/OgS
Lhotse/Og
-Li/ # Lithium
+Li/4 # Lithium
Liam/Og
Liaoning/Og
Libby/Og
@@ -6145,10 +6145,10 @@ Lowlands/O
Loyang/Og
Loyd/Og
Loyola/Og
-Lr/ # Lawrencium
+Lr/4 # Lawrencium
Lt/N
Ltd/JN
-Lu/ # Lutetium
+Lu/4 # Lutetium
Luanda/Og
Luann/Og
Lubavitcher/NgJ
@@ -6233,22 +6233,22 @@ Lysenko/Og
Lysistrata/ONg
Lysol/Og
M/NOSgJGB
-MA/JNOg # US state (Massachusetts)
+MA/JNOg4 # US state (Massachusetts)
MASH/N
MB/NOgV
MBA/Ng
MC/NOV
MCI/ONg
-MD/ONgJ # US state (Maryland)
+MD/ONg4J # US state (Maryland)
MD5/Ng
MDF/Ng # medium-density fiberboard
MDT/NO
-ME/ON # US state (Maine)
+ME/ON4 # US state (Maine)
MEGO/S
MFA/ONg
MGM/ONg # movie company
MHz/
-MI/ONg # US state (Michigan)
+MI/ONg4 # US state (Michigan)
MI6/Og # agency
MIA/JNO # missing in action
MIDI/ONg
@@ -6259,8 +6259,8 @@ MLK/Og # Martin Luther King
MM/NO
MMA/Ng # mixed martial arts
MMU/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/N
MOSFET/NgS # transistor
MP/NOgJ # military police; member of parliament
@@ -6268,13 +6268,13 @@ MP3/NSg # audio format
MP4/NSg # audio/video format
MPEG/ON
MRI/NgV # magnetic resonance imaging
-MS/NOg # US state (Mississippi)
+MS/NOg4 # US state (Mississippi)
MSG/NOg # flavour enhancer
MSRP/NSg
MST/ONgV
MSW/N
MSX/NOgS # 8-bit series of Japanese computers
-MT/JNOg # US state (Montana)
+MT/NOg4J # US state (Montana)
MTV/Og
MVP/Ng # most valuable player
MW/NO
@@ -6464,7 +6464,7 @@ Maoist/JNSg
Maori/NOSgJ
Mapplethorpe/g
Maputo/Og
-Mar/ONSg
+Mar/ONSg4
Mar-a-Lago/Og
Mara/ONg
Maracaibo/Og
@@ -6724,7 +6724,7 @@ McNeil/Og
McPherson/Og
McQueen/Og
McVeigh/Og
-Md/ # Mendelevium
+Md/4 # Mendelevium
Me/NOI
Mead/Og
Meade/Og
@@ -6860,7 +6860,7 @@ Meyer/OgS
Meyerbeer/g
Meyers/Og
Mfume/g
-Mg/ # Magnesium
+Mg/4 # Magnesium
Mgr
MiB # mebibyte
MiG/Ng
@@ -6995,9 +6995,9 @@ Mizar/Og
Mk/N
Mlle/N
Mme/NS
-Mn/ # Manganese
+Mn/4 # Manganese
Mnemosyne/Og
-Mo/ # Molybdenum
+Mo/4 # Molybdenum
Mobil/Og
Mobile/Og
Mobutu/g
@@ -7036,7 +7036,7 @@ Molokai/Og
Molotov/ONgV # minister
Moluccas/Og
Mombasa/Og
-Mon/NOSg # city
+Mon/NOSg4
Mona/Og
Monacan/JN
Monaco/Og
@@ -7153,7 +7153,7 @@ Mozilla/g # company
Mr/NSg
Ms/NS
Msgr
-Mt/ # Meitnerium
+Mt/4 # Meitnerium
Muawiya/g
Mubarak/Og # president
Mueller/Og
@@ -7228,7 +7228,7 @@ Myrtle/Og
Mysore/Og # old name of karnataka state and mysuru city
Myst/g
Mysuru/Og
-N/ # Nitrogen
+N/4 # Nitrogen
N'Djamena/O # capital of Chad
NAACP/Og
NAFTA/Og # trade agreement
@@ -7241,12 +7241,12 @@ NB/JNO
NBA/Og # sports organization
NBC/ONgJ
NBS
-NC/ONJ # US state (North Carolina)
+NC/ON4J # US state (North Carolina)
NCAA/Og
NCO/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 company
NEH/O
NES/Ng # game console
@@ -7254,14 +7254,14 @@ NF/ONJ
NFC/ON # near-field communication
NFL/ONg # sports organization
NGO/NgS # non-government organization
-NH/ONVJ # US state (New Hampshire)
+NH/ON4VJ # US state (New Hampshire)
NHL/NOg # sports organization
NHS/Og
NIH/OJ # National Institutes of Health
NIMBY/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/NgS
NORAD/Og
NP/ON
@@ -7280,16 +7280,16 @@ NSX/Ng # car
NT/ON
NTFS/Ng # file system
NTSC/Ng # television standard
-NV/ONJ # US state (Nevada)
+NV/ON4J # US state (Nevada)
NVIDIA/g # FIXME! elsewhere we have Nvidia
NVMe/O
NW/ONg
NWT/O
-NY/O # US state (New York)
+NY/O4 # US state (New York)
NYC/O
NYSE/O # stock exchange
NZ/Og # New Zealand
-Na/ # Sodium
+Na/4 # Sodium
Nabisco/g # company
Nabokov/g
Nader/Og
@@ -7365,10 +7365,10 @@ Nazareth/Og
Nazca/Og
Nazi/NOSgJ
Nazism/NgS
-Nb/ # Niobium
-Nd/ # Neodymium
+Nb/4 # Niobium
+Nd/4 # Neodymium
Ndjamena/g
-Ne/ # Neon
+Ne/4 # Neon
Neal/Og
Neanderthal/JNSg
Neapolitan/JNOg
@@ -7442,7 +7442,7 @@ New Zealand/Og
Nexis/g
Ngaliema/g
Nguyen/Og
-Ni/ # Nickel
+Ni/4 # Nickel
Niagara/ONg
Niamey/Og
Nibelung/Ng
@@ -7502,7 +7502,7 @@ Nita/g
Nivea/g
Nixon/ONg
Nkrumah/g
-No/ # Nobelium
+No/4 # Nobelium
NoDoz/g # trademark
Noah/ONg
Nobel/ONg # prize
@@ -7554,7 +7554,7 @@ Nottingham/Og
Nouakchott/Og
Nouméa/Og
Noumea/Og
-Nov/Og
+Nov/Og4
Nova/ONg
Novartis/g
November/NOSg
@@ -7566,7 +7566,7 @@ Novosibirsk/Og
Noxzema/g
Noyce/Og
Noyes/Og
-Np/ # Neptunium
+Np/4 # Neptunium
Nubia/Og
Nubian/NgJ
Nukualofa/Og
@@ -7582,7 +7582,7 @@ NutraSweet/g # trademark
NyQuil/g # trademark
Nyasa/g
Nyerere/Og
-O/NOSgPJ # Oxygen
+O/NOSg4PJ # Oxygen
O'Brien/Og
O'Casey/Og
O'Connell/Og
@@ -7604,15 +7604,15 @@ OE/ONJV
OECD/Og # organization
OED/Og # dictionary
OEM/JNgS # original equipment manufacturer
-OH/ON # US state (Ohio)
+OH/ON4 # US state (Ohio)
OHSA/g # law
OJ/NJ
-OK/NOSgVdGJ # US state (Oklahoma)
+OK/NOSg4VdGJ # US state (Oklahoma)
OLED/Ng # organic light-emitting diode
OMB/Og
OMG # exclamation
OPEC/Og # organization
-OR/CNO # Oregon
+OR/CNO4 # Oregon
OR gate/NgS
OS/Ng # removed `O` proper noun and `J` adjective flags
OS X/Og # before macOS
@@ -7643,7 +7643,7 @@ Oceania/Og
Oceanside/O
Oceanus/Og
Ochoa/Og
-Oct/Og
+Oct/Og4
Octavia/Og
Octavian/Og
Octavio/g
@@ -7780,7 +7780,7 @@ Orval/g
Orville/Og
Orwell/Og
Orwellian/Jg
-Os/ # Osmium
+Os/4 # Osmium
Osage/OgS
Osaka/Og # city
Osbert/g
@@ -7822,10 +7822,10 @@ Ozark/ONSg
Ozarks/NOg
Ozymandias/Ng
Ozzie/ONgJ
-P/ # Phosphorus
+P/4 # Phosphorus
P.P.S. # post-postscript
P.S. # postscript
-PA/ONgJ # US state (Pennsylvania)
+PA/ONg4J # US state (Pennsylvania)
PAC/NOg # political action committee
PARC/S # xerox
PASCAL # cf. pascal, Pascal
@@ -7866,7 +7866,7 @@ PP/NO
PPE/Ng # personal protective equipment
PPS/N # post-postscript; other meanings?
PR/NgS # public relations; pull request; Puerto Rico
-PRC/ONg # mainland China
+PRC/ONg4 # mainland China
PRO/N
PS/ONgJ # postscript; multiple meanings as implied by the attributes?
PST/ONg
@@ -7877,7 +7877,7 @@ PTO/ON
PVC/Ng # plastic
PW/ON
PX/N
-Pa/ # Protactinium
+Pa/4 # Protactinium
Paar/Og
Pablo/Og
Pablum/Og
@@ -8008,8 +8008,8 @@ Pawnee/ONSgJ
Pax Americana/Og
PayPal/ONgV # company
Payne/Og
-Pb/ # Lead
-Pd/ # Palladium
+Pb/4 # Lead
+Pd/4 # Palladium
Peabody/Og
Peace/ONg
Peale/Og
@@ -8217,8 +8217,8 @@ Plutarch/ONg
Pluto/Og
Plymouth/ONg
Plymouths/ON9
-Pm/ # Promethium
-Po/ # Polonium
+Pm/4 # Promethium
+Po/4 # Polonium
Pocahontas/ONg
Pocatello/Og
Pocono/Sg
@@ -8378,11 +8378,11 @@ Pryor/Og
Psalms/Og
Psalter/Sg
Psyche/Og
-Pt/ # Platinum
+Pt/4 # Platinum
Ptah/Og
Ptolemaic/Jg
Ptolemy/OgS
-Pu/ # Plutonium
+Pu/4 # Plutonium
Puccini/Og
Puck/Og
Puckett/Og
@@ -8498,7 +8498,7 @@ RF/NO
RFC/ONS
RFD/JNO
RGB # colour model
-RI/ON # US state (Rhode Island)
+RI/ON4 # US state (Rhode Island)
RIF/NV
RIFA/Og
RIP/ON
@@ -8520,9 +8520,9 @@ RSV/ON
RSVP/NOV
RSVP'd/VtT
RSVPed/VtT
-RTFM/
+RTFM/4
RV/ONSgV
-Ra/ # Radium
+Ra/4 # Radium
Rabat/Og
Rabelais/Og
Rabelaisian/Jg
@@ -8592,9 +8592,9 @@ Rayburn/ONg
Rayleigh/Og
Raymond/Og
Raymundo/g
-Rb/ # Rubidium
-Rd
-Re/ # Rhenium
+Rb/4 # Rubidium
+Rd/4
+Re/4 # Rhenium
Reading/Og
Reagan/Og
Reaganomics/Ng
@@ -8669,7 +8669,7 @@ Reykjavik/Og
Reyna/g
Reynaldo/g
Reynolds/Og
-Rf/ # Rutherfordium
+Rf/4 # Rutherfordium
Rhea/Og
Rhee/Og
Rheingau/g
@@ -8735,7 +8735,7 @@ Riverside/Og
Riviera/OgS
Riyadh/Og
Rizal/Og
-Rn/ # Radon
+Rn/4 # Radon
Roach/Og
Roanoke/Og
Rob/Og
@@ -8887,7 +8887,7 @@ Royal/ONgJ
Royce/Og
Rozelle/Og
Rte
-Ru/ # Ruthenium
+Ru/4 # Ruthenium
Rubaiyat/g
Rubbermaid/g
Ruben/OgS
@@ -8952,10 +8952,10 @@ SASE/N
SAT/NgS
SATA/Ng # computing standard
SBA/NO
-SC/JNOg # US state (South Carolina)
+SC/NOg4J # US state (South Carolina)
SCSI/Og # computing standard
SCOTUS/Og # Supreme Court Of The United States
-SD/ON # US state (San Diego)
+SD/ON4 # US state (San Diego)
SDI/NO # strategic defense initiative
SE/NOgJ
SEATO/O
@@ -9133,7 +9133,7 @@ Saskatoon/Og
Sasquatch/NgS
Sassanian/JNg
Sassoon/Og
-Sat/Ng
+Sat/Ng4
Satan/ONg
Satanism/Nmg
Satanist/Ng
@@ -9156,8 +9156,8 @@ Sawyer/Og
Saxon/NOSgJ
Saxony/ONg
Sayers/Og
-Sb/ # Antimony
-Sc/ # Scandium
+Sb/4 # Antimony
+Sc/4 # Scandium
Scala/Og
Scan
Scandinavia/Og
@@ -9240,7 +9240,7 @@ Sculley/Og
Scylla/Og
Scythia/Og
Scythian/JNOg
-Se/ # Selenium
+Se/4 # Selenium
Seaborg/Og
Seagate/Og # hard drive company
Seagram/Og
@@ -9296,7 +9296,7 @@ Sennacherib/Og
Sennett/Og
Sensurround/Og
Seoul/Og
-Sep/O
+Sep/O4
Sephardi/Ng
Sepoy/g
Sept/Og
@@ -9435,7 +9435,7 @@ Shropshire/ONg
Shula/Og
Shylock/ONg
Shylockian/g
-Si/ # Silicon
+Si/4 # Silicon
Siam/Og # old name of Thailand
Siamese/JONg
Sibelius/g
@@ -9524,7 +9524,7 @@ Slovene/JNOSg
Slovenia/Og
Slovenian/JNgS
Slurpee/Ng
-Sm/ # Samarium
+Sm/4 # Samarium
Small/Og
Smetana/Og
Smirnoff/ONg
@@ -9536,7 +9536,7 @@ Smolensk/Og
Smollett/Og
Smuts/g
Smyrna/O
-Sn/ # Tin
+Sn/4 # Tin
Snake/Og
Snapple/g
Snead/Og
@@ -9650,10 +9650,10 @@ Sputnik/NOg
Sq
Squanto/g
Squibb/Og
-Sr/ # Strontium
+Sr/4 # Strontium
Srinagar/Og
Srivijaya/g
-St/N
+St/N4
Sta/NO
Stacey/Og
Staci/Og
@@ -9789,7 +9789,7 @@ Summer/OgS
Summers/Og
Sumner/Og
Sumter/Og
-Sun/ONSg
+Sun/ONSg4
Sunbeam/Og
Sunbelt/Ng
Sundanese/NOgJ
@@ -9885,7 +9885,7 @@ TKO/ONg
TLC/NOg
TLS/NO
TM/N
-TN/ON # US state (Tennessee)
+TN/ON4 # US state (Tennessee)
TNT/NOg
TOC/NgS # table of contents
TOEFL/N
@@ -9896,8 +9896,8 @@ TVA/O
TVR/NOSg # car company
TWA/ONg
TWX/O
-TX/ONV # US state (Texas)
-Ta/ # Tantalum
+TX/ON4V # US state (Texas)
+Ta/4 # Tantalum
Tabasco/ONSg
Tabatha/Og
Tabernacle/Sg
@@ -9997,9 +9997,9 @@ Taurus/ONSg
Tavares/Og
Tawney/Og
Taylor/Og
-Tb/ # Terbium
+Tb/4 # Terbium
Tbilisi/Og
-Tc/ # Technetium
+Tc/4 # Technetium
Tchaikovsky/Og
Teasdale/Og
Technicolor/NgJ
@@ -10061,7 +10061,7 @@ Texaco/g # company
Texan/JNgS
Texarkana/Og
Texas/Og
-Th/ # Thorium
+Th/4 # Thorium
Thackeray/Og
Thad/Og
Thaddeus/Og
@@ -10120,7 +10120,7 @@ Thorpe/Og
Thoth/Og
Thrace/Og
Thracian/JNOg
-Thu/NO
+Thu/NO4
Thucydides/Og
Thule/Og
Thunderbird/NOSg # car model
@@ -10130,8 +10130,8 @@ Thurman/Og
Thurmond/Og
Thursday/NSg
Thutmose/Og
-Ti/ # Titanium
-TiB # tebibyte
+Ti/4 # Titanium
+TiB/4 # tebibyte
Tia/Og
Tianjin/Og
Tiber/Og
@@ -10181,10 +10181,10 @@ Tito/Og # president
Titograd/Og # old name of Podgorica
Titus/Og
Titusville/Og
-Tl/ # Thallium
+Tl/4 # Thallium
Tlaloc/Og
Tlingit/NOgJ
-Tm/ # Thulium
+Tm/4 # Thulium
Tobago/Og
Tobit/ONg
Toby/ONg
@@ -10315,7 +10315,7 @@ Tsiolkovsky/Og
Tsitsihar/Og
Tsongkhapa/g
Tswana/NOg
-Tu/NOg # former symbol for thulium, now Tm
+Tu/NOg4 # former symbol for thulium, now Tm
Tuamotu/Jg
Tuareg/NOg
Tubman/Og
@@ -10323,7 +10323,7 @@ Tucker/Og
Tucson/Og
Tucuman/g
Tudor/NSgJ # period
-Tue/NOS
+Tue/NOS4
Tues/Ng
Tuesday/NgS
Tulane/g
@@ -10389,7 +10389,7 @@ Tyree/Og
Tyrolean/JN
Tyrone/ONg
Tyson/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 university
U-turn/NgSVdG
U.K./Og
U.S./Og # United States
@@ -10421,7 +10421,7 @@ USAID/Og # agency
USB/ONSg
USCG/O
USCIS/O # immigration agency
-USD/Nmg # currency symbol for US dollars
+USD/Nmg4 # currency symbol for US dollars
USDA/Og
USIA/O
USMC/O
@@ -10431,7 +10431,7 @@ USP/ONJ
USPS/O
USS/NO
USSR/Og
-UT/ONg # US state (Utah)
+UT/ONg4 # US state (Utah)
UTC/O
UTF-16/Ng
UTF-32/Ng
@@ -10506,12 +10506,12 @@ Utrillo/g
Uzbek/NOgJ
Uzbekistan/Og
Uzi/NSg
-V/ # Canadium
+V/4 # Vanadium
V10/NgS
V12/NgS
V6/NgS
V8/NOSg
-VA/ONJ # US state (Virginia)
+VA/ON4J # US state (Virginia)
VAT/Ng # tax
VAX # old computer
VAXes
@@ -10537,7 +10537,7 @@ VMS/g # operating system
VOA/ON # voice of america
VP/NO # vice president
VRAM/Ng # video memory
-VT/ONJV # US state (Vermont)
+VT/ON4JV # US state (Vermont)
VTOL/N # vertical takeoff and landing
VW/OgS # car brand; cf. Volkswagen
Vacaville/Og
@@ -10724,25 +10724,25 @@ Vulcan/ONg
Vulg
Vulgate/OgS
W12/NSg
-WA/ON # US state (Washington)
+WA/ON4 # US state (Washington)
WAC/ON
WASP/Ng
WATS/Ng
WC/N
WHO/Og
-WI/O # US state (Wisconsin)
+WI/O4 # US state (Wisconsin)
WMD/N
WNW/NgJ
WP/ON
WSW/NgJ
WTF/NS
WTO/O
-WV/O # US state (West Virginia)
+WV/O4 # US state (West Virginia)
WW/NO
WWI/O
WWII/O
WWW/Og
-WY/O # US state (Wyoming)
+WY/O4 # US state (Wyoming)
WYSIWYG/N
Wabash/Og
Wac/N
@@ -10828,7 +10828,7 @@ Webb/Og
Weber/Og
Webern/g
Webster/OgS
-Wed/Ng
+Wed/Ng4
Weddell/Og
Wedgwood/Og
Wednesday/NOSg
@@ -11039,7 +11039,7 @@ Xamarin/g
Xanadu/ONg
Xanthippe/Ng
Xavier/Og
-Xe/ # Xenon
+Xe/4 # Xenon
Xenakis/Og
Xenia/Og
Xenophon/Og
@@ -11059,7 +11059,7 @@ Xizang/Og
Xmas/OgSV
Xochipilli/g
Xuzhou/Og
-Y/ # Yttrium
+Y/4 # Yttrium
YMCA/ONg
YMHA/O
YMMV/
@@ -11095,7 +11095,7 @@ Yaroslavl/Og
Yataro/g
Yates/Og
Yauco/Og
-Yb/ # Ytterbium
+Yb/4 # Ytterbium
Yeager/Og
Yeats/Og
Yekaterinburg/Og
@@ -11213,7 +11213,7 @@ Zionism/NwSg
Zionist/NSgJ
Ziploc/Ng # trademark
Žižek/Og # slavoj -
-Zn/ # Zinc
+Zn/4 # Zinc
Zoë/Og
Zoe/Og
Zola/Og
@@ -11226,7 +11226,7 @@ Zoroastrian/NgSJ
Zoroastrianism/OgSw
Zorro/ONg
Zosma/Og
-Zr/ # Zirconium
+Zr/4 # Zirconium
Zsigmondy/g
Zubenelgenubi/Og
Zubeneschamali/Og
@@ -11688,7 +11688,7 @@ adiabatic/~JN
adieu/NgS
adios/NVb
adipose/~JN
-adj/~N
+adj/~4N
adjacency/~Ng
adjacent/~JYNP
adjectival/JYN
@@ -11786,7 +11786,7 @@ adultery/~NSg
adulthood/~Nmg
adumbrate/VGdSn
adumbration/Ng
-adv/~N
+adv/~4N
advance/~VdGSNgJL
advancement/~NSg
advantage/~NwSgVdGE
@@ -13192,7 +13192,7 @@ arrant/J
arras/~NgS
array/~NgSVGdE
arrears/Ng
-arrest/~NwgSVGdr
+arrest/~NwgS>ZVGdr
arrhythmia/~Nmg
arrhythmic/J
arrhythmical/J
@@ -15213,6 +15213,7 @@ blueberry/~NwSgJV
bluebird/~NgS
bluebonnet/NSg
bluebottle/NSg
+fluefin/NSg # type of tuna
bluefish/N09gS # singular and plural, also has a plural in -s
bluegill/NgS
bluegrass/~Ng
@@ -22720,7 +22721,7 @@ e-book/NgS
e-commerce/Nmg
e'en/
e'er/
-e.g./~N
+e.g./~4N
eBay/OgV
eMusic/g
eSIM/NgS
@@ -23848,7 +23849,7 @@ estrus/NgS
estuary/~NSg
et al./~
eta/~NSg
-etc./~ # most dictionary only list it with the final dot
+etc./4~ # most dictionary only list it with the final dot
etch/Vd>GSNZz
etcher/Ng
etching/~NgV
@@ -29471,7 +29472,7 @@ hysteric/JNSg
hysterical/~JY
hysterics/Ng
i/~
-i.e./~
+i.e./4~
iMac/ONgS
iOS/Og
iPad/ONgS
@@ -51136,7 +51137,8 @@ undersigned/JNg
undersized/J
underskirt/NSg
undersold/VtTdJ
-underspent/V
+underspecify/VSdG
+underspent/VtT
understaff/VSdG
understand/~VbSGBz
understandably/~Ry
@@ -51146,12 +51148,12 @@ understatement/NSg
understood/~JVtT
understudy/~VGdSNg
undertake/~VG>SNZz
-undertaken/~V
+undertaken/~VT
undertaker/~NgS
undertaking/~NgV
underthings/Ng
undertone/NgSV
-undertook/~V
+undertook/~Vt
undertow/VSNg
underused/JV
underutilised/JV!_₹
@@ -51162,14 +51164,14 @@ underwater/~JNV
underway/~N
underwear/~Nmg
underweight/JNgV
-underwent/~V
+underwent/~Vt
underwhelm/VdGS
underwire/NSVd
underworld/~NgS
underwrite/VG>SZ
underwriter/Ng
-underwritten/V
-underwrote/V
+underwritten/VT
+underwrote/Vt
undesirable/~JNgS
undiagnosed/J
undies/NgV
@@ -51995,7 +51997,7 @@ vertices/~N9
vertiginous/J
vertigo/~Nmg
verve/~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 manner
vesicle/~NSg
vesicular/J
vesiculate/VJ
@@ -52361,7 +52363,7 @@ voyageur/NSg
voyeur/NgS
voyeurism/Ng
voyeuristic/J
-vs./~ # versus
+vs./4~ # versus
vtable/NgS
vulcanisation/Ng!_₹
vulcanise/VGdS!_₹
@@ -53048,6 +53050,7 @@ wholesomely/Ry
wholesomeness/NmgU
wholewheat/J
wholly/~Ry
+wholphin/NSg
whom/~I
whomever/I
whomsoever/I
diff --git a/harper-core/src/dict_word_metadata.rs b/harper-core/src/dict_word_metadata.rs
index 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.rs
index 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 methods
is_swear,
+ is_abbreviation,
is_likely_homograph,
// Orthography methods