Hi
For your information, I've added yet another sanity check
for regexp in grammar & disambiguation files in checkin
8838a7edef0f7a24d5c63533df7a15fc154c777d
It finds regexps that are most certainly wrong such as "".|;"
Since the dot can match any char, the ; in the disjunction is
useless. There is probably a missing backslace "\.|;"
(or better "[.;]" in this case).
It finds such errors when running "mvn clean package":
The English rule: PRP_RB_NO_VB:1 (exception in POS tag of token [4]), token
[4], contains a single dot (matching any char) so other single char
disjunction are useless within "VB.*|,|.|CC|IN|JJ|WP|MD|RB". Did you forget
forget a backslash before the dot?
The Dutch rule: nr698:1 (exception in token [2]), token [2], contains a
single dot (matching any char) so other single char disjunction are useless
within
"iets|GB|MB|^[A-Z].*|bent|heeft|waar|ja|bij|II|III|X|een|zult|.|hoe|voor|na".
Did you forget forget a backslash before the dot?
The Dutch rule: nr728:1, token [5], contains a single dot (matching any
char) so other single char disjunction are useless within ".|u|uur". Did
you forget forget a backslash before the dot?
336 rules tested.
The Russian rule: ABREV_DOT:1, token [2], contains a single dot (matching
any char) so other single char disjunction are useless within ".|/". Did
you forget forget a backslash before the dot?
The Russian rule: VVODNOE_SLOVO:12, token [4], contains a single dot
(matching any char) so other single char disjunction are useless within ",|.".
Did you forget forget a backslash before the dot?
The Russian rule: SoglasovanieP:1, token [4], contains a single dot
(matching any char) so other single char disjunction are useless within ".|;".
Did you forget forget a backslash before the dot?
The Russian rule: SoglasovanieP:2, token [4], contains a single dot
(matching any char) so other single char disjunction are useless within
".|;". Did you forget forget a backslash before the dot?
The Russian rule: SoglasovanieP:3, token [4], contains a single dot
(matching any char) so other single char disjunction are useless within
".|;". Did you forget forget a backslash before the dot?
The Russian rule: SoglasovanieP:4, token [4], contains a single dot
(matching any char) so other single char disjunction are useless within
".|;". Did you forget forget a backslash before the dot?
The Russian rule: SoglasovanieP:5, token [4], contains a single dot
(matching any char) so other single char disjunction are useless within
".|;". Did you forget forget a backslash before the dot?
The Russian rule: SoglasovanieP:6, token [4], contains a single dot
(matching any char) so other single char disjunction are useless within
".|;". Did you forget forget a backslash before the dot?
The Russian rule: SoglasovanieG:1, token [4], contains a single dot
(matching any char) so other single char disjunction are useless within
".|;". Did you forget forget a backslash before the dot?
The Russian rule: SoglasovanieG:2, token [4], contains a single dot
(matching any char) so other single char disjunction are useless within
".|;". Did you forget forget a backslash before the dot?
The Russian rule: SoglasovanieG:3, token [4], contains a single dot
(matching any char) so other single char disjunction are useless within
".|;". Did you forget forget a backslash before the dot?
The Russian rule: SoglasovanieG:4, token [4], contains a single dot
(matching any char) so other single char disjunction are useless within
".|;". Did you forget forget a backslash before the dot?
The Russian rule: SoglasovanieG:5, token [4], contains a single dot
(matching any char) so other single char disjunction are useless within
".|;". Did you forget forget a backslash before the dot?
The Russian rule: SoglasovanieNN_Verb:1, token [4], contains a single dot
(matching any char) so other single char disjunction are useless within
".|;". Did you forget forget a backslash before the dot?
The Russian rule: SoglasovanieNN_Verb:2, token [4], contains a single dot
(matching any char) so other single char disjunction are useless within
".|;". Did you forget forget a backslash before the dot?
The Russian rule: SoglasovanieNN_Verb:3, token [4], contains a single dot
(matching any char) so other single char disjunction are useless within
".|;". Did you forget forget a backslash before the dot?
The Russian rule: SoglasovanieNN_Verb:4, token [4], contains a single dot
(matching any char) so other single char disjunction are useless within
".|;". Did you forget forget a backslash before the dot?
The Romanian rule: _20_DE_PAGINI:1 (exception in token [1]), token [1],
contains a single dot (matching any char) so other single char disjunction
are useless within ",|.|cele". Did you forget forget a backslash before the
dot?
Regards
Dominique
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel