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

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,340 @@
1
+ Automatically Generated Inflection Database (AGID)
2
+
3
+ January 3, 2003
4
+ Revision 4
5
+
6
+ Copyright 2000-2003 by Kevin Atkinson <kevina@gnu.org>
7
+
8
+ The file "infl.txt" is an automatically created database of the
9
+ inflected forms of words from a rather large word list.
10
+
11
+ The latest version can be found at http://aspell.sourceforge.net/wl/.
12
+
13
+ Entries are in the following form.
14
+
15
+ <word><sp><pos>[?]:<sp><inflected forms>
16
+ <word> := [[A-Za-z']]+
17
+ <sp> := <literal space>
18
+ <pos> := [[VNA]]
19
+ <inflected forms> := <inflected form><sp>|<sp>...<sp>|<sp><inflected form>
20
+ <inflected form> := <individual entry>,<sp>...,<sp><individual entry>
21
+ <individual entry> := <word><word tags>[<sp><variant level>][<sp>{<explanation>}]
22
+ <word tags> := [~][<][!][?]
23
+ <explanation> := [<explanation text>][:<distinguishing number>]
24
+ <explanation text> := [[A-Za-z'_/]]+
25
+
26
+ where stuff between [ ] is optional, stuff between [[ ]] indicate a
27
+ range of possible characters for that entry. If a [[ ]] is followed by
28
+ a + it means the entry can consist of one or more characters in
29
+ that range. { } are literal.
30
+
31
+ A typical entry will look like
32
+
33
+ WORD V: WORDed, WORed 2, WORD {EXPL} | WORDing, WORing 2 | WORDs
34
+
35
+ <pos> is V for verb, N for noun, or A or adjective or adverb.
36
+ If <pos> is followed by a ? that means that the part-of-speech was not
37
+ in the part-of-speech database however the inflected forms of the word
38
+ where found in the word list.
39
+
40
+ The inflected forms are in the following order for verbs (except for
41
+ a few special verbs):
42
+ <past tense> [<past participle>] <-ing form> <-s form>
43
+ and for adjective or adverbs:
44
+ <-er form> <-est form>
45
+ Each form is separated by a ' | '.
46
+
47
+ An absence of a variant level implies a variant level of 0. Two words
48
+ with the same whole number variant level are considered almost equal
49
+ with a slight preference given to the entry with a lower number. A
50
+ whole number variant level of 1 indicates a less preferred form of the
51
+ word. A whole number variant level of 2 indicates any number of
52
+ things. It could mean that it is from an archaic use of the word, or
53
+ a variant that is hardly ever used or for an extremely obscure meaning
54
+ of the word, or finally it could mean that the word looked like it
55
+ could possibly be a inflected form of the base word but I could not
56
+ find any evidence for them. If two words have the same variant level
57
+ and explanation it means that both inflections were found and the
58
+ script was not sure which one to use.
59
+
60
+ Sometimes the inflected form to use depends on the meaning of the
61
+ word. If this is the case the two entries will have different
62
+ explanations. If the distinction can be made in a few words it is
63
+ given with underscores (_) replacing spaces. Otherwise the two
64
+ entries will have different distinguishing numbers.
65
+
66
+ A < after a word means that there is a good change that this is an
67
+ inflected form of the word, a ~ after a word means that there is a
68
+ slight chance. A ! after a word indicates that the word is likely an
69
+ inflections of a similar word (generally one ending in e) and not the
70
+ current word. A ? after a word means that the word was not in the
71
+ word list but if it was it would be considered an inflected form of
72
+ the base word.
73
+
74
+ This verson is now almost as accurate as Alan Beale's 2of12id file
75
+ distributed with the "Unofficial Alternate 12 Dicts Package" for the
76
+ base words which have an entry in 2of12id.txt with a few notable
77
+ exceptions. The most obvious one is the "person" entry. Alan Beale
78
+ considers, based on what his sources have told him, that "persons" is
79
+ the proper plural for "person" and "people" is considered a variant.
80
+ I however disagree and decided to consider "people" the primary form
81
+ and "persons" as the sligtly less perfered variant based on my own
82
+ experence and http://www.quinion.com/words/usagenotes/un-person.htm
83
+ which says:
84
+
85
+ The normal plural of person was persons ... However, there is
86
+ evidence from Chaucer onwards that some writers chose to use people
87
+ as a plural for person, not only in the generalised sense of 'an
88
+ uncountable or indistinct mass of individuals' but also in specific
89
+ countable cases. ... Though persons survives, it does so largely in
90
+ formal or legal contexts ...From the evidence, it seems that the
91
+ trend towards using people instead of persons is accelerating and
92
+ that it may not be so long before persons vanishes from the language
93
+ except in certain set phrases.
94
+
95
+ I considered making "persons" a variant (level 1), but I decided
96
+ against it as "persons" is for the most part perfectly acceptable and
97
+ probably considered the proper plural to use by some.
98
+
99
+ I also considered the -people ending the primary form for all words
100
+ ending in -person such as salesperson and the -persons entry the
101
+ slightly less preferred variant in spite of what 2of12id.txt said.
102
+
103
+ In some cases a variant of level 2 is listed in AGID where it is not
104
+ listed at all in 2of12id. In general this means that the script came
105
+ up with the possibility and, in spite it not being listed in 2of12id,
106
+ it seams logical to me.
107
+
108
+ The final case occurs when a word has two or more -s inflections used
109
+ as both noun and verb forms, and these forms would have different
110
+ variant levels in 2of12id. For example:
111
+ ditto N: dittos, dittoes 1
112
+ ditto V: dittoed | dittoing | dittos, dittoes 0.1
113
+ For purely technical reasons and because I do not feel that it matters
114
+ too much I have made the variant levels for the -s forms the same. For
115
+ example the ditto entries became:
116
+ ditto N: dittos, dittoes 0.1
117
+ ditto V: dittoed | dittoing | dittos, dittoes 0.1
118
+ The choice of the variant levels I used is somewhat arbitrary but I in
119
+ general went with the lower level.
120
+
121
+ Fell free to send me corrections to correct any of these questionable
122
+ words. I am mostly interested in the preferred form of the word when
123
+ the script was not able to decide or words marked with < or ~ that are
124
+ valid inflected forms of the words.
125
+
126
+ Also included in this version are the files "variant_0.lst",
127
+ "variant_1.lst", "variant_2.lst", and "variant.tab". The files
128
+ "variant_#.lst" include all of the inflected forms at the given level
129
+ found in infl.txt which are not generally considered to be some other
130
+ common word. The file variant.tab contains a cross reference of all
131
+ alternate forms of inflected form of words. The file variant-wroot.tab
132
+ is like variant.tab except that it also included the root form of the
133
+ word.
134
+
135
+ Words are in mixed case but all accents have been striped thus words
136
+ like caf� are instead cafe.
137
+
138
+ The file "variant" contains a list of alternate inflections.
139
+
140
+ The file "irregular" contains extra information where a noun or verb
141
+ has irregular inflected forms.
142
+
143
+ The file "dontuse" contains a list of words not to consider an
144
+ inflected form of a word if more than one inflected form of a word is
145
+ found.
146
+
147
+ The files "prefixes" and "suffixes" contains a list of common prefixes
148
+ and suffixes respectfully. These files are used by the script to
149
+ produce inflected forms for words that end in a word in the
150
+ "irregular" file. If the beginning appears in the word list or the
151
+ prefixes file and the ending appears in the irregular file I also
152
+ consider <prefix>+<irregular inflections>. If the prefix is 3 letters
153
+ or more OR appears in the prefixes file and the suffix is 4 letters or
154
+ more OR appears in the suffixes file I consider it the most likely
155
+ choice, otherwise I consider it as a possible candidate but not the
156
+ most likely choice.
157
+
158
+ The file "make-infl" is the actual Perl script used to create the
159
+ data base.
160
+
161
+ The file "find-var" is the Perl script used to create the variant
162
+ lists and cross reference file.
163
+
164
+ The file "make-all" was used to create the word list used by the script.
165
+
166
+ CHANGES:
167
+
168
+ From Revision 3a to 4 (January 2, 2003)
169
+
170
+ Added variant-wroot.tab
171
+ Update find-var script to also produce variant-wroot.tab.
172
+
173
+ From Revision 3 to 3a (April 04, 2001)
174
+
175
+ Fixed a bug in the find-var script which caused some common
176
+ words which are variants for one usage of a word but not
177
+ variants for any other common usage to improperly appear in
178
+ the variant list.
179
+
180
+ From Revision 2 to 3 (January 28, 2001)
181
+
182
+ Changed the format of infl.txt to something which is slightly harder
183
+ to read but a lot less ambiguous and easier to parse.
184
+
185
+ Update various files, including the actual script, so that the
186
+ output that is almost as accurate of Alan Beale 2of12id.txt
187
+
188
+ Eliminated Moby Words and ABLE from the word list used by the script
189
+ to give more accurate results.
190
+
191
+ From Revision 1 to 2 (August 18, 2000)
192
+
193
+ Classified variants as either almost equal, also used, or
194
+ secondary.
195
+
196
+ The / is now used to indicate equal variants. "/?" is now used to
197
+ mean what "/" used to be.
198
+
199
+ Lots of additional rules added which greatly improved the results.
200
+
201
+ COPYRIGHT AND SOURCE:
202
+
203
+ The final product is under the following copyright, as well as any
204
+ copyrights mentioned below.
205
+
206
+ Copyright 2000-2003 by Kevin Atkinson
207
+
208
+ Permission to use, copy, modify, distribute and sell this database,
209
+ the associated scripts, the output created form the scripts and its
210
+ documentation for any purpose is hereby granted without fee,
211
+ provided that the above copyright notice appears in all copies and
212
+ that both that copyright notice and this permission notice appear in
213
+ supporting documentation. Kevin Atkinson makes no representations
214
+ about the suitability of this array for any purpose. It is provided
215
+ "as is" without express or implied warranty.
216
+
217
+ The part-of-speech database is taken from Alan Beale 2of12id
218
+ and the WordNet database which is under the following copyright:
219
+
220
+ This software and database is being provided to you, the LICENSEE, by
221
+ Princeton University under the following license. By obtaining, using
222
+ and/or copying this software and database, you agree that you have
223
+ read, understood, and will comply with these terms and conditions.:
224
+
225
+ Permission to use, copy, modify and distribute this software and
226
+ database and its documentation for any purpose and without fee or
227
+ royalty is hereby granted, provided that you agree to comply with
228
+ the following copyright notice and statements, including the disclaimer,
229
+ and that the same appear on ALL copies of the software, database and
230
+ documentation, including modifications that you make for internal
231
+ use or for distribution.
232
+
233
+ WordNet 1.6 Copyright 1997 by Princeton University. All rights reserved.
234
+
235
+ THIS SOFTWARE AND DATABASE IS PROVIDED "AS IS" AND PRINCETON
236
+ UNIVERSITY MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
237
+ IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PRINCETON
238
+ UNIVERSITY MAKES NO REPRESENTATIONS OR WARRANTIES OF MERCHANT-
239
+ ABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE
240
+ OF THE LICENSED SOFTWARE, DATABASE OR DOCUMENTATION WILL NOT
241
+ INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR
242
+ OTHER RIGHTS.
243
+
244
+ The name of Princeton University or Princeton may not be used in
245
+ advertising or publicity pertaining to distribution of the software
246
+ and/or database. Title to copyright in this software, database and
247
+ any associated documentation shall at all times remain with
248
+ Princeton University and LICENSEE agrees to preserve same.
249
+
250
+ Alan Beale 2of12id.txt is indirectly derived from the Moby part-of-speech
251
+ database and the WordNet database. The Moby part-of-speech is in the
252
+ public domain:
253
+
254
+ The Moby lexicon project is complete and has
255
+ been place into the public domain. Use, sell,
256
+ rework, excerpt and use in any way on any platform.
257
+
258
+ Placing this material on internal or public servers is
259
+ also encouraged. The compiler is not aware of any
260
+ export restrictions so freely distribute world-wide.
261
+
262
+ You can verify the public domain status by contacting
263
+
264
+ Grady Ward
265
+ 3449 Martha Ct.
266
+ Arcata, CA 95521-4884
267
+
268
+ grady@netcom.com
269
+ grady@northcoast.com
270
+
271
+
272
+ The word list used is a combination of several word list:
273
+
274
+ 1) The ENABLE2K word lists which is in the public domain:
275
+
276
+ The ENABLE master word list, WORD.LST, is herewith formally
277
+ released into the Public Domain. Anyone is free to use it or
278
+ distribute it in any manner they see fit. No fee or registration
279
+ is required for its use nor are "contributions" solicited (if you
280
+ feel you absolutely must contribute something for your own peace
281
+ of mind, the authors of the ENABLE list ask that you make a
282
+ donation on their behalf to your favorite charity). This word
283
+ list is our gift to the Scrabble community, as an alternate to
284
+ "official" word lists. Game designers may feel free to
285
+ incorporate the WORD.LST into their games. Please mention the
286
+ source and credit us as originators of the list. Note that if
287
+ you, as a game designer, use the WORD.LST in your product, you
288
+ may still copyright and protect your product, but you may *not*
289
+ legally copyright or in any way restrict redistribution of the
290
+ WORD.LST portion of your product. This *may* under law restrict
291
+ your rights to restrict your users' rights, but that is only
292
+ fair.
293
+
294
+ 2) All of the word lists except ABLE.LST in the ENABLE2K Supplemnt
295
+ which consists of:
296
+
297
+ 2DICTS.LST ALSO.LST LETTERS.LST OSPDADD.LST UCACR.LST
298
+ LCACR.LST NOPOS.LST PLURALS.LST UPPER.LST
299
+
300
+ All of these word lists are also in the public domain.
301
+
302
+ 3) The list of signature words from the YAWL package which is in the
303
+ public domain.
304
+
305
+ 4) The UK Advanced Cryptics Dictionary which in under the following
306
+ copyright:
307
+
308
+ Copyright (c) J Ross Beresford 1993-1999. All Rights Reserved.
309
+
310
+ The following restriction is placed on the use of this
311
+ publication: if The UK Advanced Cryptics Dictionary is used
312
+ in a software package or redistributed in any form, the
313
+ copyright notice must be prominently displayed and the text
314
+ of this document must be included verbatim.
315
+
316
+ There are no other restrictions: I would like to see the
317
+ list distributed as widely as possible.
318
+
319
+ 5) Some extra words found in the Part-Of-Speech database that was not
320
+ found in any of the above word lists.
321
+
322
+ 6) Words found in the Jargon File Word List package, available at
323
+ http://aspell.sourceforge.net/wl/, which is in the Public Domain.
324
+
325
+ 7) Words in 2of12id.txt not in any of the word lists above. 2of12id is
326
+ indirectly derived from all the above sources and most of the word
327
+ lists from the Moby Words package:
328
+
329
+ 10196pla.ces 113809of.fic 21986na.mes 256772co.mpo 354984si.ngl
330
+ 3897male.nam 4160offi.cia 4946fema.len 6213acro.nym 74550com.mon
331
+
332
+ The Moby Word package, like the Part-Of-Speech database is in the
333
+ public domain.
334
+
335
+ 8) And finally some extra words that I added myself. These words can be
336
+ found in the file "extra-words"
337
+
338
+ The "dontuse", "irregular", and "variant" file was created by me
339
+ (Kevin Atkinson) from numerous sources.
340
+
@@ -0,0 +1,115 @@
1
+ Part Of Speech Database
2
+ July 23, 2000
3
+
4
+ Compiled by Kevin Atkinson <kevina@users.sourceforge.net>
5
+
6
+ The part-of-speech.txt file contains is a combination of
7
+ "Moby (tm) Part-of-Speech II" and the WordNet database.
8
+
9
+ The latest version can be found at http://aspell.sourceforge.net/wl/.
10
+
11
+ The format of each entry is
12
+ <word><tab><POS tag(s)><unix newline>
13
+
14
+ Where the POS tag is one or more of the following:
15
+
16
+ N Noun
17
+ P Plural
18
+ h Noun Phrase
19
+ V Verb (usu participle)
20
+ t Verb (transitive)
21
+ i Verb (intransitive)
22
+ A Adjective
23
+ v Adverb
24
+ C Conjunction
25
+ P Preposition
26
+ ! Interjection
27
+ r Pronoun
28
+ D Definite Article
29
+ I Indefinite Article
30
+ o Nominative
31
+
32
+ The parts of speech before any '|' (if at all) come from the original
33
+ Moby database. Anything after the '|' comes from the WordNet
34
+ database. The part of speech tags from the original Moby database are
35
+ in priority order where the principle usage is listed first. The ones
36
+ from the WordNet database are not. Entries from the moby database
37
+ have had any accents removed, the "ae" character expanded, the
38
+ pound, yen, and peseta sign converted to a '$' and the CP437
39
+ character 0xBE replaced with a '~'.
40
+
41
+ CREATION
42
+
43
+ The C++ program used to create the database is also included for those
44
+ of you are interested. The WordNet database will require a bit of
45
+ preprocessing with the following command:
46
+ cat POS.lst | sed -n 's/\([^ ][^ ]*\) /\1/p' | tr '_' ' ' > noun.POS
47
+ The paths will also need to be changed in order to get it to run.
48
+
49
+
50
+ COPYRIGHT
51
+
52
+ The Moby database was explicitly pleased in the public domain:
53
+
54
+ The Moby lexicon project is complete and has
55
+ been place into the public domain. Use, sell,
56
+ rework, excerpt and use in any way on any platform.
57
+
58
+ Placing this material on internal or public servers is
59
+ also encouraged. The compiler is not aware of any
60
+ export restrictions so freely distribute world-wide.
61
+
62
+ You can verify the public domain status by contacting
63
+
64
+ Grady Ward
65
+ 3449 Martha Ct.
66
+ Arcata, CA 95521-4884
67
+
68
+ grady@netcom.com
69
+ grady@northcoast.com
70
+
71
+
72
+ The WordNet database is under the following Copyright:
73
+
74
+ This software and database is being provided to you, the LICENSEE, by
75
+ Princeton University under the following license. By obtaining, using
76
+ and/or copying this software and database, you agree that you have
77
+ read, understood, and will comply with these terms and conditions.:
78
+
79
+ Permission to use, copy, modify and distribute this software and
80
+ database and its documentation for any purpose and without fee or
81
+ royalty is hereby granted, provided that you agree to comply with
82
+ the following copyright notice and statements, including the disclaimer,
83
+ and that the same appear on ALL copies of the software, database and
84
+ documentation, including modifications that you make for internal
85
+ use or for distribution.
86
+
87
+ WordNet 1.6 Copyright 1997 by Princeton University. All rights reserved.
88
+
89
+ THIS SOFTWARE AND DATABASE IS PROVIDED "AS IS" AND PRINCETON
90
+ UNIVERSITY MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
91
+ IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PRINCETON
92
+ UNIVERSITY MAKES NO REPRESENTATIONS OR WARRANTIES OF MERCHANT-
93
+ ABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE
94
+ OF THE LICENSED SOFTWARE, DATABASE OR DOCUMENTATION WILL NOT
95
+ INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR
96
+ OTHER RIGHTS.
97
+
98
+ The name of Princeton University or Princeton may not be used in
99
+ advertising or publicity pertaining to distribution of the software
100
+ and/or database. Title to copyright in this software, database and
101
+ any associated documentation shall at all times remain with
102
+ Princeton University and LICENSEE agrees to preserve same.
103
+
104
+ I assign no additional copyright to the combined database and the
105
+ software is explicitly being pleased in the public domain. However, I
106
+ would appreciate credit for my work.
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
package/package.json CHANGED
@@ -1,6 +1,62 @@
1
1
  {
2
2
  "name": "@valueerror/ltjs-lang-en",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "description": "English language data and rules for @valueerror/ltjs-core",
4
+ "version": "0.1.0",
5
+ "license": "GPL-3.0-or-later",
6
+ "type": "module",
7
+ "engines": {
8
+ "node": ">=24"
9
+ },
10
+ "author": "Thomas Weissel",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/valueerrorx/languagetool-js.git"
14
+ },
15
+ "homepage": "https://github.com/valueerrorx/languagetool-js#readme",
16
+ "bugs": {
17
+ "url": "https://github.com/valueerrorx/languagetool-js/issues"
18
+ },
19
+ "keywords": [
20
+ "languagetool",
21
+ "grammar",
22
+ "spellcheck",
23
+ "spell-checker",
24
+ "proofreading",
25
+ "grammar-checker",
26
+ "style-checker",
27
+ "nlp",
28
+ "german",
29
+ "austrian-german",
30
+ "swiss-german",
31
+ "english",
32
+ "french",
33
+ "spanish",
34
+ "italian",
35
+ "polish",
36
+ "russian",
37
+ "slovak",
38
+ "slovenian"
39
+ ],
40
+ "publishConfig": {
41
+ "access": "public"
42
+ },
43
+ "main": "./index.js",
44
+ "exports": {
45
+ ".": "./index.js",
46
+ "./package.json": "./package.json"
47
+ },
48
+ "sideEffects": true,
49
+ "files": [
50
+ "index.js",
51
+ "resource-root.js",
52
+ "src",
53
+ "resources",
54
+ "licenses",
55
+ "LICENSE",
56
+ "NOTICE",
57
+ "README.md"
58
+ ],
59
+ "peerDependencies": {
60
+ "@valueerror/ltjs-core": "^0.1.0"
61
+ }
62
+ }
@@ -0,0 +1,4 @@
1
+ // registers the resources/ directory of this package as an additional resource root of @valueerror/ltjs-core
2
+ import { addResourceRoot } from '@valueerror/ltjs-core/src/core/resources/ResourceDataBroker.js';
3
+
4
+ addResourceRoot(new URL('./resources/', import.meta.url));
@@ -0,0 +1 @@
1
+ languageClasses=org.languagetool.language.English,org.languagetool.language.AmericanEnglish,org.languagetool.language.BritishEnglish,org.languagetool.language.AustralianEnglish,org.languagetool.language.CanadianEnglish,org.languagetool.language.NewZealandEnglish,org.languagetool.language.SouthAfricanEnglish
Binary file
Binary file
Binary file