Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

docs(POS): document `UPOS` variants (#1444)

Steve Kurch194322333566
diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dict
index 2b545d6ca..a32549a17 100644
--- a/harper-core/dictionary.dict
+++ b/harper-core/dictionary.dict
@@ -11616,6 +11616,7 @@ adoring/VJNY
adorn/VNJLGdS
adorned/~VJU
adornment/NgS
+adposition/Ng
adrenal/~JNgS
adrenalin's
adrenaline/~Ng
@@ -52390,7 +52391,6 @@ DBMS/NOSg # database management system
DCT/NgS # discrete cosine transform
DEI
DKIM/NSg
-DM/NgSV
DM'd/V # direct message
DM/NSgV
DMed/V
@@ -52517,7 +52517,7 @@ Manilas/N
Manilla/Og
MapReduce/N
Marchus/Sg
-Mercielago/NSg
+Murcielago/OSg
Metasploit/ONgS
Minecraft/Og
Minhaj/OSg
@@ -52526,7 +52526,6 @@ Mockito/Sg
Molex/NOgS # Molex connector
Mullenweg/g
Munin/Sg
-Mercielago/OSg
N.S.A./OSg # FIXME! elsewhere we have NSA
N1/Og
N2/Og
@@ -53255,4 +53254,4 @@ z-axis/Ng
# And they will be reviewed
# Word added using the `just addnoun` command will be added here
-handedly
\ No newline at end of file
+handedly
diff --git a/harper-pos-utils/src/upos.rs b/harper-pos-utils/src/upos.rs
index 6aab8d639..f440888fa 100644
--- a/harper-pos-utils/src/upos.rs
+++ b/harper-pos-utils/src/upos.rs
@@ -20,22 +20,38 @@ use strum_macros::{AsRefStr, EnumIter};
Is,
)]
pub enum UPOS {
+ /// Adjective
ADJ,
+ /// Adposition
ADP,
+ /// Adverb
ADV,
+ /// Auxiliary
AUX,
+ /// Coordinating conjunction
CCONJ,
+ /// Determiner
DET,
+ /// Interjection
INTJ,
+ /// Noun
#[default]
NOUN,
+ /// Numeral
NUM,
+ /// Particle
PART,
+ /// Pronoun
PRON,
+ /// Proper noun
PROPN,
+ /// Punctuation
PUNCT,
+ /// Subordinating conjunction
SCONJ,
+ /// Symbol
SYM,
+ /// Verb
VERB,
}