Revision: 7185
http://languagetool.svn.sourceforge.net/languagetool/?rev=7185&view=rev
Author: milek_pl
Date: 2012-06-02 19:40:18 +0000 (Sat, 02 Jun 2012)
Log Message:
-----------
fix the source of most false alarms for CD_NN
Modified Paths:
--------------
trunk/JLanguageTool/src/resource/en/disambiguation.xml
trunk/JLanguageTool/src/rules/en/grammar.xml
Modified: trunk/JLanguageTool/src/resource/en/disambiguation.xml
===================================================================
--- trunk/JLanguageTool/src/resource/en/disambiguation.xml 2012-06-02
19:12:42 UTC (rev 7184)
+++ trunk/JLanguageTool/src/resource/en/disambiguation.xml 2012-06-02
19:40:18 UTC (rev 7185)
@@ -1450,5 +1450,17 @@
</pattern>
<disambig postag="VB"/>
<example type="ambiguous"
inputform="train[train/NN,train/VB,train/VBP]" outputform="train[train/VB]">Our
army helped <marker>train</marker> the Armenian soldiers.</example>
+ </rule>
+
+ <rule id="CD_AD" name="24 AD">
+ <pattern case_sensitive="yes">
+ <token postag="CD"/>
+ <marker>
+ <token>AD</token>
+ </marker>
+ </pattern>
+ <disambig postag="NNP"/>
+ <example type="untouched">1 ad for you</example>
+ <example type="ambiguous" inputform="AD[AD/NNP,ad/NN]"
outputform="AD[AD/NNP]">24 <marker>AD</marker> is a memorable date.</example>
</rule>
</rules>
Modified: trunk/JLanguageTool/src/rules/en/grammar.xml
===================================================================
--- trunk/JLanguageTool/src/rules/en/grammar.xml 2012-06-02 19:12:42 UTC
(rev 7184)
+++ trunk/JLanguageTool/src/rules/en/grammar.xml 2012-06-02 19:40:18 UTC
(rev 7185)
@@ -7790,7 +7790,7 @@
<rule id="CD_NN" name="Possible agreement error: numeral + singular
countable noun">
<pattern>
<marker>
- <token postag="CD"><exception
regexp="yes">one|thou|zero|1</exception></token>
+ <token postag="CD"><exception
regexp="yes">one|thou|zero|1</exception><exception scope="previous"
postag="DT|PRP\$" postag_regexp="yes"/></token>
<token postag="NN:UN|NN" postag_regexp="yes"><exception
postag="NN:U|NNS|NNPS|JJ.*|IN"
postag_regexp="yes"></exception><exception>will</exception></token>
</marker>
<token><exception postag="NN.*"
postag_regexp="yes"></exception><exception>'</exception></token>
@@ -7802,6 +7802,8 @@
<example type="correct">I have <marker>one bottle</marker> of
wine.</example>
<example type="correct">Exactly 1 hour!</example>
<example type="correct">I have two book readers in my
palmtop.</example>
+ <example type="correct">At its 1864 convention, the Republican
Party selected Andrew Johnson.</example>
+ <example type="correct">The 2007 ceremony was watched by more than
40 million Americans.</example>
</rule>
<rule id="MANY_NN" name="Possible agreement error: 'many/several/few'
+ singular countable noun">
<pattern>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs