@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.
- package/LICENSE +232 -0
- package/NOTICE +10 -0
- package/README.md +25 -2
- package/index.js +34 -0
- package/licenses/LGPL-2.1.txt +504 -0
- package/licenses/english-pos-dict.pom.xml +135 -0
- package/licenses/resource_en_12dicts-readme.html +738 -0
- package/licenses/resource_en_agid-readme.txt +340 -0
- package/licenses/resource_en_pos-readme.txt +115 -0
- package/package.json +60 -4
- package/resource-root.js +4 -0
- package/resources/META-INF/org/languagetool/language-module.properties +1 -0
- package/resources/en-chunker.bin +0 -0
- package/resources/en-pos-maxent.bin +0 -0
- package/resources/en-token.bin +0 -0
- package/resources/org/languagetool/resource/en/12dicts-readme.html +738 -0
- package/resources/org/languagetool/resource/en/added.txt +446 -0
- package/resources/org/languagetool/resource/en/added_custom.txt +4 -0
- package/resources/org/languagetool/resource/en/agid-readme.txt +340 -0
- package/resources/org/languagetool/resource/en/compounds.txt +9059 -0
- package/resources/org/languagetool/resource/en/confusion_sets.txt +871 -0
- package/resources/org/languagetool/resource/en/disambiguation.xml +17238 -0
- package/resources/org/languagetool/resource/en/do-not-synthesize.txt +13 -0
- package/resources/org/languagetool/resource/en/en-US-GB.txt +4804 -0
- package/resources/org/languagetool/resource/en/en.sor +211 -0
- package/resources/org/languagetool/resource/en/english.dict +0 -0
- package/resources/org/languagetool/resource/en/english.info +8 -0
- package/resources/org/languagetool/resource/en/english_synth.dict +0 -0
- package/resources/org/languagetool/resource/en/english_synth.info +7 -0
- package/resources/org/languagetool/resource/en/english_tags.txt +88 -0
- package/resources/org/languagetool/resource/en/hunspell/en_AU.dict +0 -0
- package/resources/org/languagetool/resource/en/hunspell/en_AU.info +16 -0
- package/resources/org/languagetool/resource/en/hunspell/en_CA.dict +0 -0
- package/resources/org/languagetool/resource/en/hunspell/en_CA.info +13 -0
- package/resources/org/languagetool/resource/en/hunspell/en_GB.dict +0 -0
- package/resources/org/languagetool/resource/en/hunspell/en_GB.info +15 -0
- package/resources/org/languagetool/resource/en/hunspell/en_NZ.dict +0 -0
- package/resources/org/languagetool/resource/en/hunspell/en_NZ.info +18 -0
- package/resources/org/languagetool/resource/en/hunspell/en_US.dict +0 -0
- package/resources/org/languagetool/resource/en/hunspell/en_US.info +15 -0
- package/resources/org/languagetool/resource/en/hunspell/en_ZA.dict +0 -0
- package/resources/org/languagetool/resource/en/hunspell/en_ZA.info +16 -0
- package/resources/org/languagetool/resource/en/hunspell/ignore.txt +11070 -0
- package/resources/org/languagetool/resource/en/hunspell/prohibit.txt +383 -0
- package/resources/org/languagetool/resource/en/hunspell/prohibit_custom.txt +1 -0
- package/resources/org/languagetool/resource/en/hunspell/spelling.txt +477 -0
- package/resources/org/languagetool/resource/en/hunspell/spelling_custom.txt +1 -0
- package/resources/org/languagetool/resource/en/hunspell/spelling_en-AU.txt +34 -0
- package/resources/org/languagetool/resource/en/hunspell/spelling_en-CA.txt +28 -0
- package/resources/org/languagetool/resource/en/hunspell/spelling_en-GB.txt +44 -0
- package/resources/org/languagetool/resource/en/hunspell/spelling_en-NZ.txt +31 -0
- package/resources/org/languagetool/resource/en/hunspell/spelling_en-US.txt +41 -0
- package/resources/org/languagetool/resource/en/hunspell/spelling_en-ZA.txt +32 -0
- package/resources/org/languagetool/resource/en/hunspell/spelling_merged.txt +0 -0
- package/resources/org/languagetool/resource/en/multiwords.txt +8210 -0
- package/resources/org/languagetool/resource/en/pos-readme.txt +115 -0
- package/resources/org/languagetool/resource/en/removed.txt +31 -0
- package/resources/org/languagetool/resource/en/removed_custom.txt +4 -0
- package/resources/org/languagetool/resource/en/specific_case.txt +5621 -0
- package/resources/org/languagetool/resource/en/word_definitions.txt +1510 -0
- package/resources/org/languagetool/rules/en/coherency.txt +2501 -0
- package/resources/org/languagetool/rules/en/contractions.txt +198 -0
- package/resources/org/languagetool/rules/en/det_a.txt +959 -0
- package/resources/org/languagetool/rules/en/det_an.txt +4080 -0
- package/resources/org/languagetool/rules/en/diacritics.txt +1415 -0
- package/resources/org/languagetool/rules/en/en-AU/grammar.xml +171 -0
- package/resources/org/languagetool/rules/en/en-CA/grammar.xml +197 -0
- package/resources/org/languagetool/rules/en/en-GB/grammar.xml +555 -0
- package/resources/org/languagetool/rules/en/en-GB/replace.txt +104 -0
- package/resources/org/languagetool/rules/en/en-GB/style.xml +302 -0
- package/resources/org/languagetool/rules/en/en-NZ/grammar.xml +171 -0
- package/resources/org/languagetool/rules/en/en-NZ/replace.txt +5 -0
- package/resources/org/languagetool/rules/en/en-US/grammar.xml +913 -0
- package/resources/org/languagetool/rules/en/en-US/replace.txt +74 -0
- package/resources/org/languagetool/rules/en/en-US/style.xml +524 -0
- package/resources/org/languagetool/rules/en/grammar-l2-de.xml +227 -0
- package/resources/org/languagetool/rules/en/grammar-l2-fr.xml +39 -0
- package/resources/org/languagetool/rules/en/grammar.xml +142537 -0
- package/resources/org/languagetool/rules/en/redundancies.txt +866 -0
- package/resources/org/languagetool/rules/en/remote-rule-filters.xml +3622 -0
- package/resources/org/languagetool/rules/en/replace.txt +221 -0
- package/resources/org/languagetool/rules/en/replace_custom.txt +7 -0
- package/resources/org/languagetool/rules/en/replace_profanity.txt +540 -0
- package/resources/org/languagetool/rules/en/style.xml +12556 -0
- package/resources/org/languagetool/rules/en/synonyms.txt +42 -0
- package/resources/org/languagetool/rules/en/wordiness.txt +1061 -0
- package/resources/org/languagetool/rules/en/wrongWordInContext.txt +14 -0
- package/src/lang/en/chunking/EnglishChunkFilter.js +108 -0
- package/src/lang/en/chunking/EnglishChunker.js +135 -0
- package/src/lang/en/language/AmericanEnglish.js +73 -0
- package/src/lang/en/language/AustralianEnglish.js +42 -0
- package/src/lang/en/language/BritishEnglish.js +91 -0
- package/src/lang/en/language/CanadianEnglish.js +70 -0
- package/src/lang/en/language/English.js +398 -0
- package/src/lang/en/language/NewZealandEnglish.js +44 -0
- package/src/lang/en/language/SouthAfricanEnglish.js +40 -0
- package/src/lang/en/language/id2prioBritishEnglish.js +6 -0
- package/src/lang/en/language/id2prioEnglish.js +333 -0
- package/src/lang/en/rules/AbstractEnglishSpellerRule.js +677 -0
- package/src/lang/en/rules/AbstractEnglishSpellerRuleData.js +778 -0
- package/src/lang/en/rules/AdvancedSynthesizerFilter.js +12 -0
- package/src/lang/en/rules/AdverbFilter.js +538 -0
- package/src/lang/en/rules/AmericanReplaceRule.js +57 -0
- package/src/lang/en/rules/AvsAnData.js +37 -0
- package/src/lang/en/rules/AvsAnRule.js +182 -0
- package/src/lang/en/rules/BritishReplaceRule.js +57 -0
- package/src/lang/en/rules/CompoundRule.js +150 -0
- package/src/lang/en/rules/ConsistentApostrophesRule.js +87 -0
- package/src/lang/en/rules/ContractionSpellingRule.js +64 -0
- package/src/lang/en/rules/DateCheckFilter.js +58 -0
- package/src/lang/en/rules/DateFilterHelper.js +51 -0
- package/src/lang/en/rules/EnglishConvertToSentenceCaseFilter.js +17 -0
- package/src/lang/en/rules/EnglishDashRule.js +42 -0
- package/src/lang/en/rules/EnglishDiacriticsRule.js +67 -0
- package/src/lang/en/rules/EnglishMultitokenSpeller.js +15 -0
- package/src/lang/en/rules/EnglishNumberInWordFilter.js +38 -0
- package/src/lang/en/rules/EnglishPartialPosTagFilter.js +29 -0
- package/src/lang/en/rules/EnglishPlainEnglishRule.js +67 -0
- package/src/lang/en/rules/EnglishRedundancyRule.js +67 -0
- package/src/lang/en/rules/EnglishRepeatedWordsRule.js +212 -0
- package/src/lang/en/rules/EnglishSpecificCaseRule.js +47 -0
- package/src/lang/en/rules/EnglishSuppressMisspelledSuggestionsFilter.js +12 -0
- package/src/lang/en/rules/EnglishUnpairedBracketsRule.js +25 -0
- package/src/lang/en/rules/EnglishUnpairedQuotesRule.js +41 -0
- package/src/lang/en/rules/EnglishWordRepeatBeginningRule.js +107 -0
- package/src/lang/en/rules/EnglishWordRepeatRule.js +126 -0
- package/src/lang/en/rules/EnglishWrongWordInContextRule.js +50 -0
- package/src/lang/en/rules/FindSuggestionsFilter.js +41 -0
- package/src/lang/en/rules/FutureDateFilter.js +25 -0
- package/src/lang/en/rules/LongSentenceRule.js +19 -0
- package/src/lang/en/rules/MorfologikAmericanSpellerRule.js +69 -0
- package/src/lang/en/rules/MorfologikAustralianSpellerRule.js +45 -0
- package/src/lang/en/rules/MorfologikBritishSpellerRule.js +47 -0
- package/src/lang/en/rules/MorfologikCanadianSpellerRule.js +45 -0
- package/src/lang/en/rules/MorfologikNewZealandSpellerRule.js +45 -0
- package/src/lang/en/rules/MorfologikSouthAfricanSpellerRule.js +45 -0
- package/src/lang/en/rules/NewYearDateFilter.js +25 -0
- package/src/lang/en/rules/NewZealandReplaceRule.js +56 -0
- package/src/lang/en/rules/NoDisambiguationEnglishPartialPosTagFilter.js +24 -0
- package/src/lang/en/rules/OrdinalSuffixFilter.js +33 -0
- package/src/lang/en/rules/SimpleReplaceProfanityRule.js +55 -0
- package/src/lang/en/rules/SimpleReplaceRule.js +46 -0
- package/src/lang/en/rules/StyleTooOftenUsedAdjectiveRule.js +58 -0
- package/src/lang/en/rules/StyleTooOftenUsedNounRule.js +58 -0
- package/src/lang/en/rules/StyleTooOftenUsedVerbRule.js +58 -0
- package/src/lang/en/rules/UnitConversionRule.js +47 -0
- package/src/lang/en/rules/UnitConversionRuleImperial.js +57 -0
- package/src/lang/en/rules/UnitConversionRuleUS.js +62 -0
- package/src/lang/en/rules/VariantInfo.js +23 -0
- package/src/lang/en/rules/WordCoherencyRule.js +40 -0
- package/src/lang/en/rules/YMDDateCheckFilter.js +25 -0
- package/src/lang/en/rules/YMDNewYearDateFilter.js +25 -0
- package/src/lang/en/rules/translation/BeoLingusTranslator.js +357 -0
- package/src/lang/en/rules/translation/Inflector.js +72 -0
- package/src/lang/en/synthesis/EnglishSynthesizer.js +109 -0
- package/src/lang/en/tagging/EnglishHybridDisambiguator.js +28 -0
- package/src/lang/en/tagging/EnglishTagger.js +78 -0
- package/src/lang/en/tokenizers/EnglishWordTokenizer.js +113 -0
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<?xml-stylesheet type="text/xsl" href="../../../../../../../../../languagetool-core/src/main/resources/org/languagetool/rules/print.xsl" ?>
|
|
3
|
+
<?xml-stylesheet type="text/css" href="../../../../../../../../../languagetool-core/src/main/resources/org/languagetool/rules/rules.css"
|
|
4
|
+
title="Easy editing stylesheet" ?>
|
|
5
|
+
<!--
|
|
6
|
+
Rules for LanguageTool when user's native language is German
|
|
7
|
+
|
|
8
|
+
Copyright (C) 2001-2019 Daniel Naber (http://www.danielnaber.de),
|
|
9
|
+
Marcin Miłkowski and the LanguageTool contributors
|
|
10
|
+
|
|
11
|
+
This library is free software; you can redistribute it and/or
|
|
12
|
+
modify it under the terms of the GNU Lesser General Public
|
|
13
|
+
License as published by the Free Software Foundation; either
|
|
14
|
+
version 2.1 of the License, or (at your option) any later version.
|
|
15
|
+
|
|
16
|
+
This library is distributed in the hope that it will be useful,
|
|
17
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
19
|
+
Lesser General Public License for more details.
|
|
20
|
+
|
|
21
|
+
You should have received a copy of the GNU Lesser General Public
|
|
22
|
+
License along with this library; if not, write to the Free Software
|
|
23
|
+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
|
|
24
|
+
USA
|
|
25
|
+
-->
|
|
26
|
+
|
|
27
|
+
<rules lang="en" idprefix="L2_" xsi:noNamespaceSchemaLocation="../../../../../../../../../languagetool-core/src/main/resources/org/languagetool/rules/rules.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
28
|
+
|
|
29
|
+
<category id="GRAMMAR" name="Grammar" type="grammar">
|
|
30
|
+
<rule id="THAN_AS" name="more sales as (than) last year">
|
|
31
|
+
<!--
|
|
32
|
+
TODO:
|
|
33
|
+
He runs faster as Peter.
|
|
34
|
+
-->
|
|
35
|
+
<antipattern>
|
|
36
|
+
<token>as</token>
|
|
37
|
+
<token chunk_re="B-NP.*" min="0" />
|
|
38
|
+
<token chunk_re="E-NP.*" />
|
|
39
|
+
<token chunk_re=".-VP" />
|
|
40
|
+
</antipattern>
|
|
41
|
+
<antipattern>
|
|
42
|
+
<token>as</token>
|
|
43
|
+
<token>its</token>
|
|
44
|
+
<token postag="JJ" />
|
|
45
|
+
</antipattern>
|
|
46
|
+
<antipattern>
|
|
47
|
+
<token>as</token>
|
|
48
|
+
<token regexp="yes">an?</token>
|
|
49
|
+
<token regexp="yes">percentage|portion|result|protection</token>
|
|
50
|
+
</antipattern>
|
|
51
|
+
<antipattern>
|
|
52
|
+
<token>as</token>
|
|
53
|
+
<token regexp="yes">off?</token>
|
|
54
|
+
</antipattern>
|
|
55
|
+
<antipattern>
|
|
56
|
+
<token>as</token>
|
|
57
|
+
<token chunk_re="B-NP.*" min="0" />
|
|
58
|
+
<token chunk_re="E-NP.*" />
|
|
59
|
+
<token regexp="yes" skip="7">and|n?or|&</token>
|
|
60
|
+
<token chunk_re=".-VP" />
|
|
61
|
+
</antipattern>
|
|
62
|
+
<antipattern>
|
|
63
|
+
<token>as</token>
|
|
64
|
+
<token chunk_re="B-NP.*" min="0" />
|
|
65
|
+
<token chunk_re="E-NP.*" />
|
|
66
|
+
<token skip="4">,</token>
|
|
67
|
+
<token regexp="yes" skip="7">and|n?or|&</token>
|
|
68
|
+
<token chunk_re=".-VP" />
|
|
69
|
+
</antipattern>
|
|
70
|
+
<antipattern>
|
|
71
|
+
<token>as</token>
|
|
72
|
+
<token chunk_re="B-NP.*" min="0" />
|
|
73
|
+
<token chunk_re="E-NP.*" />
|
|
74
|
+
<token postag="IN" skip="7" />
|
|
75
|
+
<token chunk_re=".-VP" />
|
|
76
|
+
<example>The industry faced more setbacks as pollution from the Savannah River in the 1950s contaminated the island oyster beds.</example>
|
|
77
|
+
</antipattern>
|
|
78
|
+
<antipattern>
|
|
79
|
+
<token skip="2">as</token>
|
|
80
|
+
<token>as</token>
|
|
81
|
+
</antipattern>
|
|
82
|
+
<antipattern>
|
|
83
|
+
<token postag="CD" skip="2" />
|
|
84
|
+
<token regexp="yes">or|and|&</token>
|
|
85
|
+
<token regexp="yes">more|less</token>
|
|
86
|
+
</antipattern>
|
|
87
|
+
<antipattern>
|
|
88
|
+
<token skip="-1">as</token>
|
|
89
|
+
<token regexp="yes">th[ea]n</token>
|
|
90
|
+
</antipattern>
|
|
91
|
+
<antipattern>
|
|
92
|
+
<token postag="CD" />
|
|
93
|
+
<token regexp="yes">more|less</token>
|
|
94
|
+
<example>Karami served four more times as Prime Minister throughout the 1960s.</example>
|
|
95
|
+
</antipattern>
|
|
96
|
+
<pattern>
|
|
97
|
+
<token regexp="yes">more|less</token>
|
|
98
|
+
<token chunk_re="B-NP-plural" min="0" />
|
|
99
|
+
<token chunk_re="E-NP-plural" />
|
|
100
|
+
<marker>
|
|
101
|
+
<token>as</token>
|
|
102
|
+
</marker>
|
|
103
|
+
<token chunk_re="B-NP.*" min="0" />
|
|
104
|
+
<token chunk_re="E-NP.*" postag="NN.*" postag_regexp="yes">
|
|
105
|
+
<exception regexp="yes">arrives|appears|approaches|exceeds</exception>
|
|
106
|
+
</token>
|
|
107
|
+
</pattern>
|
|
108
|
+
<message>Did you mean <suggestion>than</suggestion>?</message>
|
|
109
|
+
<example correction="than">We had more sales <marker>as</marker> last year.</example>
|
|
110
|
+
<example correction="than">Tom has more bullets <marker>as</marker> Peter ever had.</example>
|
|
111
|
+
<example correction="than">We had more sales <marker>as</marker> 2 years ago.</example>
|
|
112
|
+
<example correction="than">Did you know that when Blizzards game was getting larger they hired more people <marker>as</marker> Game Masters just so that this presence was still felt?</example>
|
|
113
|
+
</rule>
|
|
114
|
+
<rulegroup id="WH_VERB_SUBJECT" name="When comes the bus (does the bus come|is the bus coming)?">
|
|
115
|
+
<antipattern>
|
|
116
|
+
<token>why</token>
|
|
117
|
+
<token postag="VBP" />
|
|
118
|
+
<token>it</token>
|
|
119
|
+
</antipattern>
|
|
120
|
+
<antipattern>
|
|
121
|
+
<token>how</token>
|
|
122
|
+
<token>goes</token>
|
|
123
|
+
<token>it</token>
|
|
124
|
+
</antipattern>
|
|
125
|
+
<antipattern>
|
|
126
|
+
<token regexp="yes">when|where|how</token>
|
|
127
|
+
<token regexp="yes" case_sensitive="yes">[A-Z]|[a-z]</token>
|
|
128
|
+
</antipattern>
|
|
129
|
+
<antipattern>
|
|
130
|
+
<token>how</token>
|
|
131
|
+
<token postag="VB" />
|
|
132
|
+
</antipattern>
|
|
133
|
+
<antipattern>
|
|
134
|
+
<token>where</token>
|
|
135
|
+
<token>lies</token>
|
|
136
|
+
</antipattern>
|
|
137
|
+
<rule> <!-- subject pronouns, present tense WITH progressive suggestion -->
|
|
138
|
+
<pattern>
|
|
139
|
+
<token postag="SENT_START|CC|PCT" postag_regexp="yes" />
|
|
140
|
+
<token regexp="yes">when|where|why|how</token>
|
|
141
|
+
<marker>
|
|
142
|
+
<token postag="VB[PZ]" postag_regexp="yes">
|
|
143
|
+
<exception postag="MD" />
|
|
144
|
+
<exception regexp="yes" inflected="yes">be|chide|do|have</exception>
|
|
145
|
+
</token>
|
|
146
|
+
<token skip="5" postag="PRP_S.*" postag_regexp="yes" chunk_re="B-NP.*" />
|
|
147
|
+
</marker>
|
|
148
|
+
<token postag="SENT_END">?</token>
|
|
149
|
+
</pattern>
|
|
150
|
+
<message>Questions require a helping verb (a form of 'do' or 'be') + the main verb ('<match no="3" postag="VB" />').</message>
|
|
151
|
+
<suggestion><match no="3" postag="V.*" postag_regexp="yes">do</match> \4 <match no="3" postag="VB" /></suggestion>
|
|
152
|
+
<suggestion><match no="3" postag="V.*" postag_regexp="yes">be</match> \4 <match no="3" postag="VBG" /></suggestion>
|
|
153
|
+
<example correction="do you go|are you going">When <marker>go you</marker> home?</example>
|
|
154
|
+
<example correction="do you eat|are you eating">Why <marker>eat you</marker> so much?</example>
|
|
155
|
+
<example correction="does he work|is he working">How <marker>works he</marker> so late at night?</example>
|
|
156
|
+
<example>Why use it?</example>
|
|
157
|
+
<example>How goes it?</example>
|
|
158
|
+
<example>Why chide you with me?</example>
|
|
159
|
+
</rule>
|
|
160
|
+
<rule> <!-- subject pronouns, past tense WITHOUT progressive suggestion -->
|
|
161
|
+
<pattern>
|
|
162
|
+
<token postag="SENT_START|CC|PCT" postag_regexp="yes" />
|
|
163
|
+
<token regexp="yes">when|where|why|how</token>
|
|
164
|
+
<marker>
|
|
165
|
+
<token postag="VBD">
|
|
166
|
+
<exception postag="MD" />
|
|
167
|
+
<exception regexp="yes" inflected="yes">be|do|have</exception>
|
|
168
|
+
</token>
|
|
169
|
+
<token skip="5" postag="PRP_S.*" postag_regexp="yes" chunk_re="B-NP.*" />
|
|
170
|
+
</marker>
|
|
171
|
+
<token postag="SENT_END">?</token>
|
|
172
|
+
</pattern>
|
|
173
|
+
<message>Past tense questions require a helping verb ('did') + the base form of the main verb ('<match no="3" postag="VB" />').</message>
|
|
174
|
+
<suggestion>did \4 <match no="3" postag="VB" /></suggestion>
|
|
175
|
+
<example correction="did you come">When <marker>came you</marker> home last night?</example>
|
|
176
|
+
<example correction="did she go">Where <marker>went she</marker> on vacation last month?</example>
|
|
177
|
+
</rule>
|
|
178
|
+
<rule> <!-- other NPs, present tense WITH progressive suggestion -->
|
|
179
|
+
<pattern>
|
|
180
|
+
<token postag="SENT_START|CC|PCT" postag_regexp="yes" />
|
|
181
|
+
<token regexp="yes">when|where|how</token>
|
|
182
|
+
<marker>
|
|
183
|
+
<token postag="VB[PZ]" postag_regexp="yes" chunk="B-VP">
|
|
184
|
+
<exception postag="MD" />
|
|
185
|
+
<exception regexp="yes" inflected="yes">be|do|have</exception>
|
|
186
|
+
</token>
|
|
187
|
+
<token chunk_re="B-NP.*" />
|
|
188
|
+
<token min="0" chunk_re="I-NP.*" />
|
|
189
|
+
<token min="0" skip="5" chunk_re="E-NP.*" />
|
|
190
|
+
</marker>
|
|
191
|
+
<token postag="SENT_END">?</token>
|
|
192
|
+
</pattern>
|
|
193
|
+
<message>Questions require a helping verb (a form of 'do' or 'be') + the main verb ('<match no="3" postag="VB" />').</message>
|
|
194
|
+
<suggestion><match no="3" postag="V.*" postag_regexp="yes">do</match> \4 \5 \6 <match no="3" postag="VB" /></suggestion>
|
|
195
|
+
<suggestion><match no="3" postag="V.*" postag_regexp="yes">be</match> \4 \5 \6 <match no="3" postag="VBG" /></suggestion>
|
|
196
|
+
<example correction="does the bus come|is the bus coming">When <marker>comes the bus</marker>?</example>
|
|
197
|
+
<example correction="do the kids go|are the kids going">Where <marker>go the kids</marker> after school?</example>
|
|
198
|
+
<example correction="does the second domain run|is the second domain running">Where <marker>runs the second domain</marker>?</example>
|
|
199
|
+
<example>Where r u?</example>
|
|
200
|
+
<example>So now where i my tuts+ subscription code?</example>
|
|
201
|
+
<example>How fix it?</example>
|
|
202
|
+
<example>Hmm, how come my post was edited?</example>
|
|
203
|
+
<example>Where lies the problem?</example>
|
|
204
|
+
</rule>
|
|
205
|
+
<rule> <!-- other NPs, past tense WITHOUT progressive suggestion -->
|
|
206
|
+
<pattern>
|
|
207
|
+
<token postag="SENT_START|CC|PCT" postag_regexp="yes" />
|
|
208
|
+
<token regexp="yes">when|where|how</token>
|
|
209
|
+
<marker>
|
|
210
|
+
<token postag="VBD" chunk="B-VP">
|
|
211
|
+
<exception postag="MD" />
|
|
212
|
+
<exception regexp="yes" inflected="yes">be|do|have</exception>
|
|
213
|
+
</token>
|
|
214
|
+
<token chunk_re="B-NP.*" />
|
|
215
|
+
<token min="0" chunk_re="I-NP.*" />
|
|
216
|
+
<token min="0" skip="5" chunk_re="E-NP.*" />
|
|
217
|
+
</marker>
|
|
218
|
+
<token postag="SENT_END">?</token>
|
|
219
|
+
</pattern>
|
|
220
|
+
<message>Past tense questions require a helping verb ('did') + the base form of the main verb ('<match no="3" postag="VB" />').</message>
|
|
221
|
+
<suggestion>did \4 \5 \6 <match no="3" postag="VB" /></suggestion>
|
|
222
|
+
<example correction="did the cats swim">How <marker>swam the cats</marker> across the lake?</example>
|
|
223
|
+
</rule>
|
|
224
|
+
</rulegroup>
|
|
225
|
+
</category>
|
|
226
|
+
|
|
227
|
+
</rules>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<?xml-stylesheet type="text/xsl" href="../../../../../../../../../languagetool-core/src/main/resources/org/languagetool/rules/print.xsl" ?>
|
|
3
|
+
<?xml-stylesheet type="text/css" href="../../../../../../../../../languagetool-core/src/main/resources/org/languagetool/rules/rules.css"
|
|
4
|
+
title="Easy editing stylesheet" ?>
|
|
5
|
+
<!--
|
|
6
|
+
Rules for LanguageTool when user's native language is French
|
|
7
|
+
|
|
8
|
+
Copyright (C) 2001-2019 Daniel Naber (http://www.danielnaber.de),
|
|
9
|
+
and the LanguageTool contributors
|
|
10
|
+
|
|
11
|
+
This library is free software; you can redistribute it and/or
|
|
12
|
+
modify it under the terms of the GNU Lesser General Public
|
|
13
|
+
License as published by the Free Software Foundation; either
|
|
14
|
+
version 2.1 of the License, or (at your option) any later version.
|
|
15
|
+
|
|
16
|
+
This library is distributed in the hope that it will be useful,
|
|
17
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
19
|
+
Lesser General Public License for more details.
|
|
20
|
+
|
|
21
|
+
You should have received a copy of the GNU Lesser General Public
|
|
22
|
+
License along with this library; if not, write to the Free Software
|
|
23
|
+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
|
|
24
|
+
USA
|
|
25
|
+
-->
|
|
26
|
+
|
|
27
|
+
<rules lang="en" idprefix="L2_" xsi:noNamespaceSchemaLocation="../../../../../../../../../languagetool-core/src/main/resources/org/languagetool/rules/rules.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
28
|
+
|
|
29
|
+
<category id="TYPOS" name="Possible Typo" type="misspelling">
|
|
30
|
+
<rule id="FAKE" name="internal rule" default="on">
|
|
31
|
+
<pattern>
|
|
32
|
+
<token>languagetool-placeholder-rule-643235483</token>
|
|
33
|
+
</pattern>
|
|
34
|
+
<message>This is an internal placeholder to keep the XML syntax valid.</message>
|
|
35
|
+
<example correction=""><marker>languagetool-placeholder-rule-643235483</marker></example>
|
|
36
|
+
</rule>
|
|
37
|
+
</category>
|
|
38
|
+
|
|
39
|
+
</rules>
|