@valueerror/ltjs-lang-en 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/LICENSE +232 -0
  2. package/NOTICE +10 -0
  3. package/README.md +25 -2
  4. package/index.js +34 -0
  5. package/licenses/LGPL-2.1.txt +504 -0
  6. package/licenses/english-pos-dict.pom.xml +135 -0
  7. package/licenses/resource_en_12dicts-readme.html +738 -0
  8. package/licenses/resource_en_agid-readme.txt +340 -0
  9. package/licenses/resource_en_pos-readme.txt +115 -0
  10. package/package.json +60 -4
  11. package/resource-root.js +4 -0
  12. package/resources/META-INF/org/languagetool/language-module.properties +1 -0
  13. package/resources/en-chunker.bin +0 -0
  14. package/resources/en-pos-maxent.bin +0 -0
  15. package/resources/en-token.bin +0 -0
  16. package/resources/org/languagetool/resource/en/12dicts-readme.html +738 -0
  17. package/resources/org/languagetool/resource/en/added.txt +446 -0
  18. package/resources/org/languagetool/resource/en/added_custom.txt +4 -0
  19. package/resources/org/languagetool/resource/en/agid-readme.txt +340 -0
  20. package/resources/org/languagetool/resource/en/compounds.txt +9059 -0
  21. package/resources/org/languagetool/resource/en/confusion_sets.txt +871 -0
  22. package/resources/org/languagetool/resource/en/disambiguation.xml +17238 -0
  23. package/resources/org/languagetool/resource/en/do-not-synthesize.txt +13 -0
  24. package/resources/org/languagetool/resource/en/en-US-GB.txt +4804 -0
  25. package/resources/org/languagetool/resource/en/en.sor +211 -0
  26. package/resources/org/languagetool/resource/en/english.dict +0 -0
  27. package/resources/org/languagetool/resource/en/english.info +8 -0
  28. package/resources/org/languagetool/resource/en/english_synth.dict +0 -0
  29. package/resources/org/languagetool/resource/en/english_synth.info +7 -0
  30. package/resources/org/languagetool/resource/en/english_tags.txt +88 -0
  31. package/resources/org/languagetool/resource/en/hunspell/en_AU.dict +0 -0
  32. package/resources/org/languagetool/resource/en/hunspell/en_AU.info +16 -0
  33. package/resources/org/languagetool/resource/en/hunspell/en_CA.dict +0 -0
  34. package/resources/org/languagetool/resource/en/hunspell/en_CA.info +13 -0
  35. package/resources/org/languagetool/resource/en/hunspell/en_GB.dict +0 -0
  36. package/resources/org/languagetool/resource/en/hunspell/en_GB.info +15 -0
  37. package/resources/org/languagetool/resource/en/hunspell/en_NZ.dict +0 -0
  38. package/resources/org/languagetool/resource/en/hunspell/en_NZ.info +18 -0
  39. package/resources/org/languagetool/resource/en/hunspell/en_US.dict +0 -0
  40. package/resources/org/languagetool/resource/en/hunspell/en_US.info +15 -0
  41. package/resources/org/languagetool/resource/en/hunspell/en_ZA.dict +0 -0
  42. package/resources/org/languagetool/resource/en/hunspell/en_ZA.info +16 -0
  43. package/resources/org/languagetool/resource/en/hunspell/ignore.txt +11070 -0
  44. package/resources/org/languagetool/resource/en/hunspell/prohibit.txt +383 -0
  45. package/resources/org/languagetool/resource/en/hunspell/prohibit_custom.txt +1 -0
  46. package/resources/org/languagetool/resource/en/hunspell/spelling.txt +477 -0
  47. package/resources/org/languagetool/resource/en/hunspell/spelling_custom.txt +1 -0
  48. package/resources/org/languagetool/resource/en/hunspell/spelling_en-AU.txt +34 -0
  49. package/resources/org/languagetool/resource/en/hunspell/spelling_en-CA.txt +28 -0
  50. package/resources/org/languagetool/resource/en/hunspell/spelling_en-GB.txt +44 -0
  51. package/resources/org/languagetool/resource/en/hunspell/spelling_en-NZ.txt +31 -0
  52. package/resources/org/languagetool/resource/en/hunspell/spelling_en-US.txt +41 -0
  53. package/resources/org/languagetool/resource/en/hunspell/spelling_en-ZA.txt +32 -0
  54. package/resources/org/languagetool/resource/en/hunspell/spelling_merged.txt +0 -0
  55. package/resources/org/languagetool/resource/en/multiwords.txt +8210 -0
  56. package/resources/org/languagetool/resource/en/pos-readme.txt +115 -0
  57. package/resources/org/languagetool/resource/en/removed.txt +31 -0
  58. package/resources/org/languagetool/resource/en/removed_custom.txt +4 -0
  59. package/resources/org/languagetool/resource/en/specific_case.txt +5621 -0
  60. package/resources/org/languagetool/resource/en/word_definitions.txt +1510 -0
  61. package/resources/org/languagetool/rules/en/coherency.txt +2501 -0
  62. package/resources/org/languagetool/rules/en/contractions.txt +198 -0
  63. package/resources/org/languagetool/rules/en/det_a.txt +959 -0
  64. package/resources/org/languagetool/rules/en/det_an.txt +4080 -0
  65. package/resources/org/languagetool/rules/en/diacritics.txt +1415 -0
  66. package/resources/org/languagetool/rules/en/en-AU/grammar.xml +171 -0
  67. package/resources/org/languagetool/rules/en/en-CA/grammar.xml +197 -0
  68. package/resources/org/languagetool/rules/en/en-GB/grammar.xml +555 -0
  69. package/resources/org/languagetool/rules/en/en-GB/replace.txt +104 -0
  70. package/resources/org/languagetool/rules/en/en-GB/style.xml +302 -0
  71. package/resources/org/languagetool/rules/en/en-NZ/grammar.xml +171 -0
  72. package/resources/org/languagetool/rules/en/en-NZ/replace.txt +5 -0
  73. package/resources/org/languagetool/rules/en/en-US/grammar.xml +913 -0
  74. package/resources/org/languagetool/rules/en/en-US/replace.txt +74 -0
  75. package/resources/org/languagetool/rules/en/en-US/style.xml +524 -0
  76. package/resources/org/languagetool/rules/en/grammar-l2-de.xml +227 -0
  77. package/resources/org/languagetool/rules/en/grammar-l2-fr.xml +39 -0
  78. package/resources/org/languagetool/rules/en/grammar.xml +142537 -0
  79. package/resources/org/languagetool/rules/en/redundancies.txt +866 -0
  80. package/resources/org/languagetool/rules/en/remote-rule-filters.xml +3622 -0
  81. package/resources/org/languagetool/rules/en/replace.txt +221 -0
  82. package/resources/org/languagetool/rules/en/replace_custom.txt +7 -0
  83. package/resources/org/languagetool/rules/en/replace_profanity.txt +540 -0
  84. package/resources/org/languagetool/rules/en/style.xml +12556 -0
  85. package/resources/org/languagetool/rules/en/synonyms.txt +42 -0
  86. package/resources/org/languagetool/rules/en/wordiness.txt +1061 -0
  87. package/resources/org/languagetool/rules/en/wrongWordInContext.txt +14 -0
  88. package/src/lang/en/chunking/EnglishChunkFilter.js +108 -0
  89. package/src/lang/en/chunking/EnglishChunker.js +135 -0
  90. package/src/lang/en/language/AmericanEnglish.js +73 -0
  91. package/src/lang/en/language/AustralianEnglish.js +42 -0
  92. package/src/lang/en/language/BritishEnglish.js +91 -0
  93. package/src/lang/en/language/CanadianEnglish.js +70 -0
  94. package/src/lang/en/language/English.js +398 -0
  95. package/src/lang/en/language/NewZealandEnglish.js +44 -0
  96. package/src/lang/en/language/SouthAfricanEnglish.js +40 -0
  97. package/src/lang/en/language/id2prioBritishEnglish.js +6 -0
  98. package/src/lang/en/language/id2prioEnglish.js +333 -0
  99. package/src/lang/en/rules/AbstractEnglishSpellerRule.js +677 -0
  100. package/src/lang/en/rules/AbstractEnglishSpellerRuleData.js +778 -0
  101. package/src/lang/en/rules/AdvancedSynthesizerFilter.js +12 -0
  102. package/src/lang/en/rules/AdverbFilter.js +538 -0
  103. package/src/lang/en/rules/AmericanReplaceRule.js +57 -0
  104. package/src/lang/en/rules/AvsAnData.js +37 -0
  105. package/src/lang/en/rules/AvsAnRule.js +182 -0
  106. package/src/lang/en/rules/BritishReplaceRule.js +57 -0
  107. package/src/lang/en/rules/CompoundRule.js +150 -0
  108. package/src/lang/en/rules/ConsistentApostrophesRule.js +87 -0
  109. package/src/lang/en/rules/ContractionSpellingRule.js +64 -0
  110. package/src/lang/en/rules/DateCheckFilter.js +58 -0
  111. package/src/lang/en/rules/DateFilterHelper.js +51 -0
  112. package/src/lang/en/rules/EnglishConvertToSentenceCaseFilter.js +17 -0
  113. package/src/lang/en/rules/EnglishDashRule.js +42 -0
  114. package/src/lang/en/rules/EnglishDiacriticsRule.js +67 -0
  115. package/src/lang/en/rules/EnglishMultitokenSpeller.js +15 -0
  116. package/src/lang/en/rules/EnglishNumberInWordFilter.js +38 -0
  117. package/src/lang/en/rules/EnglishPartialPosTagFilter.js +29 -0
  118. package/src/lang/en/rules/EnglishPlainEnglishRule.js +67 -0
  119. package/src/lang/en/rules/EnglishRedundancyRule.js +67 -0
  120. package/src/lang/en/rules/EnglishRepeatedWordsRule.js +212 -0
  121. package/src/lang/en/rules/EnglishSpecificCaseRule.js +47 -0
  122. package/src/lang/en/rules/EnglishSuppressMisspelledSuggestionsFilter.js +12 -0
  123. package/src/lang/en/rules/EnglishUnpairedBracketsRule.js +25 -0
  124. package/src/lang/en/rules/EnglishUnpairedQuotesRule.js +41 -0
  125. package/src/lang/en/rules/EnglishWordRepeatBeginningRule.js +107 -0
  126. package/src/lang/en/rules/EnglishWordRepeatRule.js +126 -0
  127. package/src/lang/en/rules/EnglishWrongWordInContextRule.js +50 -0
  128. package/src/lang/en/rules/FindSuggestionsFilter.js +41 -0
  129. package/src/lang/en/rules/FutureDateFilter.js +25 -0
  130. package/src/lang/en/rules/LongSentenceRule.js +19 -0
  131. package/src/lang/en/rules/MorfologikAmericanSpellerRule.js +69 -0
  132. package/src/lang/en/rules/MorfologikAustralianSpellerRule.js +45 -0
  133. package/src/lang/en/rules/MorfologikBritishSpellerRule.js +47 -0
  134. package/src/lang/en/rules/MorfologikCanadianSpellerRule.js +45 -0
  135. package/src/lang/en/rules/MorfologikNewZealandSpellerRule.js +45 -0
  136. package/src/lang/en/rules/MorfologikSouthAfricanSpellerRule.js +45 -0
  137. package/src/lang/en/rules/NewYearDateFilter.js +25 -0
  138. package/src/lang/en/rules/NewZealandReplaceRule.js +56 -0
  139. package/src/lang/en/rules/NoDisambiguationEnglishPartialPosTagFilter.js +24 -0
  140. package/src/lang/en/rules/OrdinalSuffixFilter.js +33 -0
  141. package/src/lang/en/rules/SimpleReplaceProfanityRule.js +55 -0
  142. package/src/lang/en/rules/SimpleReplaceRule.js +46 -0
  143. package/src/lang/en/rules/StyleTooOftenUsedAdjectiveRule.js +58 -0
  144. package/src/lang/en/rules/StyleTooOftenUsedNounRule.js +58 -0
  145. package/src/lang/en/rules/StyleTooOftenUsedVerbRule.js +58 -0
  146. package/src/lang/en/rules/UnitConversionRule.js +47 -0
  147. package/src/lang/en/rules/UnitConversionRuleImperial.js +57 -0
  148. package/src/lang/en/rules/UnitConversionRuleUS.js +62 -0
  149. package/src/lang/en/rules/VariantInfo.js +23 -0
  150. package/src/lang/en/rules/WordCoherencyRule.js +40 -0
  151. package/src/lang/en/rules/YMDDateCheckFilter.js +25 -0
  152. package/src/lang/en/rules/YMDNewYearDateFilter.js +25 -0
  153. package/src/lang/en/rules/translation/BeoLingusTranslator.js +357 -0
  154. package/src/lang/en/rules/translation/Inflector.js +72 -0
  155. package/src/lang/en/synthesis/EnglishSynthesizer.js +109 -0
  156. package/src/lang/en/tagging/EnglishHybridDisambiguator.js +28 -0
  157. package/src/lang/en/tagging/EnglishTagger.js +78 -0
  158. package/src/lang/en/tokenizers/EnglishWordTokenizer.js +113 -0
@@ -0,0 +1,198 @@
1
+ #Common English contractions
2
+ #Used because our speller dictionaries
3
+ #do not include forms with the apostrophe
4
+ #The file is case sensitive to avoid false alarms for "Ill" and "Im"
5
+ #(c) 2013 Marcin Milkowski
6
+ #Licensed under LGPL
7
+ aint=ain't
8
+ ainT=ain't
9
+ Aint=Ain't
10
+ AINT=AIN'T
11
+ arent=aren't
12
+ arenT=aren't
13
+ Arent=Aren't
14
+ ARENT=AREN'T
15
+ #cant=can't
16
+ couldnt=couldn't
17
+ couldnT=couldn't
18
+ Couldnt=Couldn't
19
+ COULDNT=COULDN'T
20
+ didnt=didn't
21
+ didnT=didn't
22
+ Didnt=Didn't
23
+ doesnt=doesn't
24
+ doesnT=doesn't
25
+ Doesnt=Doesn't
26
+ DOESNT=DOESN'T
27
+ dont=don't
28
+ donT=don't
29
+ Dont=Don't
30
+ DONT=DON'T
31
+ hadnt=hadn't
32
+ hadnT=hadn't
33
+ Hadnt=Hadn't
34
+ HADNT=HADN'T
35
+ hasnt=hasn't
36
+ hasnT=hasn't
37
+ Hasnt=Hasn't
38
+ havent=haven't
39
+ havenT=haven't
40
+ Havent=Haven't
41
+ HAVENT=HAVEN'T
42
+ hed=he'd
43
+ Hed=He'd
44
+ #hell=he'll #too ambiguous
45
+ hes=he's
46
+ heS=he's
47
+ Hes=He's
48
+ howd=how'd
49
+ Howd=How'd
50
+ hows=how's
51
+ Hows=How's
52
+ howll=how'll
53
+ Howll=How'll
54
+ Id=I'd|ID
55
+ Im=I'm
56
+ #Ive=I've
57
+ isnt=isn't
58
+ isnT=isn't
59
+ Isnt=Isn't
60
+ ISNT=ISN'T
61
+ #its=it's
62
+ #lets=let's
63
+ mightnt=mightn't
64
+ Mightnt=Mightn't
65
+ MIGHTNT=MIGHTN'T
66
+ mustve=must've
67
+ Mustve=Must've
68
+ MUSTVE=MUST'VE
69
+ mustnt=mustn't
70
+ Mustnt=Mustn't
71
+ MUSTNT=MUSTN'T
72
+ neednt=needn't
73
+ Neednt=Needn't
74
+ NEEDNT=NEEDN'T
75
+ oclock=o'clock
76
+ Oclock=O'clock
77
+ OCLOCK=O'CLOCK
78
+ shant=shan't
79
+ Shant=Shan't
80
+ SHANT=SHAN'T
81
+ #shed=she'd
82
+ #shell=she'll
83
+ shes=she's
84
+ sheS=she's
85
+ Shes=She's
86
+ SHES=SHE'S
87
+ shouldve=should've
88
+ Shouldve=Should've
89
+ SHOULDVE=SHOULD'VE
90
+ shouldnt=shouldn't
91
+ shouldnT=shouldn't
92
+ Shouldnt=Shouldn't
93
+ SHOULDNT=SHOULDN'T
94
+ thatd=that'd
95
+ Thatd=That'd
96
+ THATD=THAT'D
97
+ thats=that's
98
+ Thats=That's
99
+ THATS=THAT'S
100
+ thered=there'd
101
+ Thered=There'd
102
+ THERED=THERE'D
103
+ theres=there's
104
+ Theres=There's
105
+ THERES=THERE'S
106
+ therere=there are
107
+ THERERE=THERE ARE
108
+ Therere=There are
109
+ theyd=they'd
110
+ Theyd=They'd
111
+ THEYD=THEY'D
112
+ theyll=they'll
113
+ Theyll=They'll
114
+ THEYLL=THEY'LL
115
+ theyre=they're
116
+ Theyre=They're
117
+ THEYRE=THEY'RE
118
+ theyve=they've
119
+ Theyve=They've
120
+ THEYVE=THEY'VE
121
+ wasnt=wasn't
122
+ wasnT=wasn't
123
+ WASNT=WASN'T
124
+ Wasnt=Wasn't
125
+ #wed=we'd -- false alarms, needs a proper rule
126
+ #not Wed: short for Wednesday
127
+ #were=we're
128
+ #well=we'll
129
+ weve=we've
130
+ Weve=We've
131
+ WEVE=WE'VE
132
+ werent=weren't
133
+ werenT=weren't
134
+ Werent=Weren't
135
+ WERENT=WEREN'T
136
+ whatll=what'll
137
+ Whatll=What'll
138
+ WHATLL=WHAT'LL
139
+ whatre=what're
140
+ Whatre=What're
141
+ WHATRE=WHAT'RE
142
+ whats=what's
143
+ Whats=What's
144
+ WHATS=WHAT'S
145
+ whatd=what'd
146
+ Whatd=What'd
147
+ WHATD=WHAT'D
148
+ whatve=what've
149
+ Whatve=What've
150
+ WHATVE=WHAT'VE
151
+ whens=when's
152
+ Whens=When's
153
+ WHENS=WHEN'S
154
+ wheres=where's
155
+ Wheres=Where's
156
+ WHERES=WHERE'S
157
+ whereve=where've|wherever
158
+ Whereve=Where've|Wherever
159
+ WHEREVE=WHERE'VE|WHEREVER
160
+ whod=who'd
161
+ Whod=Who'd
162
+ WHOD=WHO'D
163
+ wholl=who'll
164
+ Wholl=Who'll
165
+ WHOLL=WHO'LL
166
+ #whore=who're
167
+ whos=who's
168
+ Whos=Who's
169
+ WHOS=WHO'S
170
+ whove=who've
171
+ Whove=Who've
172
+ WHOVE=WHO'VE
173
+ whys=why's
174
+ Whys=Why's
175
+ WHYS=WHY'S
176
+ #wont=won't
177
+ wouldve=would've
178
+ Wouldve=Would've
179
+ WOULDVE=WOULD'VE
180
+ wouldnt=wouldn't
181
+ wouldnT=wouldn't
182
+ Wouldnt=Wouldn't
183
+ WOULDNT=WOULDN'T
184
+ yall=y'all
185
+ Yall=Y'all
186
+ YALL=Y'ALL
187
+ youd=you'd
188
+ Youd=You'd
189
+ YOUD=YOU'D
190
+ youll=you'll
191
+ Youll=You'll
192
+ YOULL=YOU'LL
193
+ youre=you're
194
+ Youre=You're
195
+ YOURE=YOU'RE
196
+ youve=you've
197
+ Youve=You've
198
+ YOUVE=YOU'VE