Revision: 7334
http://languagetool.svn.sourceforge.net/languagetool/?rev=7334&view=rev
Author: dominikoeo
Date: 2012-06-13 16:59:01 +0000 (Wed, 13 Jun 2012)
Log Message:
-----------
- "ant test" wrongly warned about 2 Polish POS
being possible regexp. So tweaked the heuristic
which recognizes whether a POS is a regexp regexp
in rules in order to avoid false positives.
The heuristic copes with the fact that Polish POS
contain dots (.) without being regexp.
Modified Paths:
--------------
trunk/JLanguageTool/src/test/org/languagetool/rules/patterns/PatternRuleTest.java
Modified:
trunk/JLanguageTool/src/test/org/languagetool/rules/patterns/PatternRuleTest.java
===================================================================
---
trunk/JLanguageTool/src/test/org/languagetool/rules/patterns/PatternRuleTest.java
2012-06-13 15:20:38 UTC (rev 7333)
+++
trunk/JLanguageTool/src/test/org/languagetool/rules/patterns/PatternRuleTest.java
2012-06-13 16:59:01 UTC (rev 7334)
@@ -41,7 +41,7 @@
// regexp if and only if it is not enclosed on both sides by those
characters.
// This is to cope with Polish POS tags which contain dots without being
// a regexp.
- private static final Pattern PROBABLE_PATTERN =
Pattern.compile("(.+[+?^{}|\\[\\]].*)|(.*[+?^{}|\\[\\]].+)|(\\(.*\\))|(\\\\[^0-9].*)|[^cfmnt123]\\.|\\.[^mvngl]|(.+\\.$)");
+ private static final Pattern PROBABLE_PATTERN =
Pattern.compile("(.+[+?^{}|\\[\\]].*)|(.*[+?^{}|\\[\\]].+)|(\\(.*\\))|(\\\\[^0-9].*)|[^cfmnt123]\\.|\\.[^ampvngl]|(.+\\.$)");
private static final Pattern CASE_PATTERN = Pattern.compile("\\[(.)(.)\\]");
private static final Pattern EMPTY_DISJUNCTION =
Pattern.compile("^[|]|[|][|]|[|]$");
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