Skip to content

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

feat: add technical words to dictionary (#2219)

rauletaveras0d8cedbf59ae
diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dict
index 1d24af1c5..2a887d00f 100644
--- a/harper-core/dictionary.dict
+++ b/harper-core/dictionary.dict
@@ -20903,7 +20903,7 @@ derision/Nwg
derisive/JYNp
derisiveness/Nmg
derisory/J
-derivation/~NgS
+derivation/~NgSQ
derivative/~JNgS
derive/~VB
dermal/~JN
@@ -26497,7 +26497,7 @@ gite/NS
give/~VG>SNZz
giveaway/NgSJ
giveback/NgS
-given/~VTSPNgJ
+given/~VTPNSgJp # "Givenness" is a technical word in the branch of philosophy called Phenomenology, so I'm adding it here
giver/~Ng
gizmo/NSg
gizzard/NgS
@@ -33045,7 +33045,7 @@ marital/~JY
maritime/~J
marjoram/Ng
mark/~NgSVdGr
-marked/~JVtTU
+marked/~JVtTUp # "Markedness" is a technical term in linguistics, so adding it here
markedly/~Ry
marker/~NgSV
market/~NgSVd>GZB
@@ -38340,7 +38340,7 @@ perturbed/~VJU
pertussis/Ng
peruke/NgS
perusal/NgS
-peruse/VGdSN
+peruse/VGdNS>
perv/~NSV
pervade/VdSG
pervasive/~JYp
@@ -54082,3 +54082,58 @@ work out/V
# If you're not confident in using the affix annotations, add missing words here
# And they will be reviewed
# Word added using the `just addnoun` command will be added here
+
+adposition/NSg
+affixation/Nmg
+affordance/NSg
+affricate/NSg
+agglutinative/J
+antepenultimate/J
+approximant/NSg
+allative/NSg
+allophone/NSg
+benefactive/NSgJ
+calque/NSg
+clitic/NSg
+Compline/NO # Final prayer of the day in the Christian Daily Office and/or Liturgy of the Hours
+conlang/NSGg>Vd # conlang (n/v) < "constructed language", plu. 'conlangs', regular verb; also "conlanging" for the activity
+denotation/NSgQ
+derivation/NSgQ
+endonym/NSg
+epenthesis/Nm # TODO: not count noun
+epenthetic/JQ
+evidential/NSg # used in linguistics as a count noun; e.g. "a system of evidentials"
+exocentric/JQ
+golem/NSg
+iconicity/Nmg
+imperfective/NSgJ
+intentionality/N # From Phenomenology
+intervocalic/JQ
+lenition/N # non-count
+lexicalize/Vd # lexicalized is an adjective
+LFG/NOg # Lexical Functional Grammar
+licensor/NSg
+locative/NSgJ
+neurodivergent/J
+nonpast/N
+omnipredicativity/N0
+optative/NSgJ
+paucal/NJ
+perfective/NSgJ
+phenomenological/JQ
+phonotactic/JQ
+phonotactics/N
+postposition/NSg
+poststructuralist/NSgJ
+prefixation/N
+retroflex/J
+romanization/NSg
+sandhi/Nmg
+singulative/NSgJ
+supervenience/Nmg # From emergentist ontology
+tonogenesis/Nmg
+topicalize/Vd>SGZ
+topicalization/Nmg
+typological/JQ
+volitive/NSgJ
+worldbuild/Vd>G
diff --git a/harper-core/tests/text/linters/Part-of-speech tagging.snap.yml b/harper-core/tests/text/linters/Part-of-speech tagging.snap.yml
index 132e89106..86b350100 100644
--- a/harper-core/tests/text/linters/Part-of-speech tagging.snap.yml
+++ b/harper-core/tests/text/linters/Part-of-speech tagging.snap.yml
@@ -184,18 +184,6 @@ Suggest:
-Lint: Spelling (63 priority)
-Message: |
- 74 | Greek and Latin can be very large; tagging words in agglutinative languages such
- | ^~~~~~~~~~~~~ Did you mean to spell `agglutinative` this way?
- 75 | as Inuit languages may be virtually impossible. At the other extreme, Petrov et
-Suggest:
- - Replace with: “agglutinate”
- - Replace with: “agglutinating”
- - Replace with: “agglutination”
-
-
-
Lint: Spelling (63 priority)
Message: |
75 | as Inuit languages may be virtually impossible. At the other extreme, Petrov et
diff --git a/harper-core/tests/text/linters/The Great Gatsby.snap.yml b/harper-core/tests/text/linters/The Great Gatsby.snap.yml
index 3fea64f21..0ee82d5d1 100644
--- a/harper-core/tests/text/linters/The Great Gatsby.snap.yml
+++ b/harper-core/tests/text/linters/The Great Gatsby.snap.yml
@@ -4,8 +4,8 @@ Message: |
| ^~ Did you mean to spell `F.` this way?
Suggest:
- Replace with: “Fe”
- - Replace with: “F”
- Replace with: “Ff”
+ - Replace with: “F1”
@@ -7666,8 +7666,8 @@ Message: |
| ^~ Did you mean to spell `F.` this way?
Suggest:
- Replace with: “Fe”
- - Replace with: “F”
- Replace with: “Ff”
+ - Replace with: “F1”
diff --git a/harper-core/tests/text/tagged/Part-of-speech tagging.md b/harper-core/tests/text/tagged/Part-of-speech tagging.md
index db45c3dcb..b016e1fcc 100644
--- a/harper-core/tests/text/tagged/Part-of-speech tagging.md
+++ b/harper-core/tests/text/tagged/Part-of-speech tagging.md
@@ -143,7 +143,7 @@
> cross - language differences . The tag sets for heavily inflected languages such as
# NPr/VB/J/P+ . N🅪Sg/VB+ NPl/VB+ . D+ NSg/VB+ NPl/V3 R/C/P R VP/J NPl/V3+ NSg/I NSg/R
> Greek and Latin can be very large ; tagging words in agglutinative languages such
-# NPr/VB/J VB/C NPr/J NPr/VXB NSg/VXB J/R NSg/J . NSg/Vg NPl/V3+ NPr/J/R/P ? NPl/V3+ NSg/I
+# NPr/VB/J VB/C NPr/J NPr/VXB NSg/VXB J/R NSg/J . NSg/Vg NPl/V3+ NPr/J/R/P J NPl/V3+ NSg/I
> as Inuit languages may be virtually impossible . At the other extreme , Petrov et
# NSg/R NPr/J NPl/V3+ NPr/VXB NSg/VXB R NSg/J . NSg/P D NSg/VB/J NSg/J . ? ?
> al. have proposed a " universal " tag set , with 12 categories ( for example , no