Revision: 8219
http://languagetool.svn.sourceforge.net/languagetool/?rev=8219&view=rev
Author: dominikoeo
Date: 2012-10-14 07:32:28 +0000 (Sun, 14 Oct 2012)
Log Message:
-----------
[br] Clean up: use /.../ for regex, not '...'.
Patch received from Thierry Vignaud.
Modified Paths:
--------------
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/br/create-lexicon.pl
Modified:
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/br/create-lexicon.pl
===================================================================
---
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/br/create-lexicon.pl
2012-10-14 06:05:42 UTC (rev 8218)
+++
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/br/create-lexicon.pl
2012-10-14 07:32:28 UTC (rev 8219)
@@ -1923,22 +1923,22 @@
$first_letter_lemma = lc $first_letter_lemma;
$first_letter_word = lc $first_letter_word;
- if ($lemma eq 'kaout' and !($word =~ '.*aout')) { }
+ if ($lemma eq 'kaout' and $word !~ /.*aout/) { }
elsif ($word eq 'tud') { }
elsif ($word eq 'dud') { $tag .= " M:1:1a" }
elsif ($word eq 'zud') { $tag .= " M:2:" }
elsif ($word eq 'diweuz') { }
elsif ($word eq 'tiweuz') { $tag .= " M:3:" }
elsif ($word eq 'ziweuz') { $tag .= " M:1:1b:" }
- elsif ($word =~ '^kezeg-?(koad|mor|blein)?$') { }
- elsif ($word =~ '^gezeg-?(koad|mor|blein)?$') { $tag .= " M:1:1a:" }
- elsif ($word =~ '^c’hezeg-?(koad|mor|blein)?$') { $tag .= " M:2:" }
- elsif ($word =~ '^daou(ividig|lin|lagad|ufern)$') { }
- elsif ($word =~ '^taou(ividig|lin|lagad|ufern)$') { $tag .= " M:3:" }
- elsif ($word =~ '^zaou(ividig|lin|lagad|ufern)$') { $tag .= " M:1:1b:" }
- elsif ($word =~
'^div(abrant|c’har|esker|lez|rec’h|ronn|orzhed|jod|skoaz|skouarn)$') { }
- elsif ($word =~
'^tiv(abrant|c’har|esker|lez|rec’h|ronn|orzhed|jod|skoaz|skouarn)$') { $tag .=
" M:3:" }
- elsif ($word =~
'^ziv(abrant|c’har|esker|lez|rec’h|ronn|orzhed|jod|skoaz|skouarn)$') { $tag .=
" M:1:1b:" }
+ elsif ($word =~ /^kezeg-?(koad|mor|blein)?$/) { }
+ elsif ($word =~ /^gezeg-?(koad|mor|blein)?$/) { $tag .= " M:1:1a:" }
+ elsif ($word =~ /^c’hezeg-?(koad|mor|blein)?$/) { $tag .= " M:2:" }
+ elsif ($word =~ /^daou(ividig|lin|lagad|ufern)$/) { }
+ elsif ($word =~ /^taou(ividig|lin|lagad|ufern)$/) { $tag .= " M:3:" }
+ elsif ($word =~ /^zaou(ividig|lin|lagad|ufern)$/) { $tag .= " M:1:1b:" }
+ elsif ($word =~
/^div(abrant|c’har|esker|lez|rec’h|ronn|orzhed|jod|skoaz|skouarn)$/) { }
+ elsif ($word =~
/^tiv(abrant|c’har|esker|lez|rec’h|ronn|orzhed|jod|skoaz|skouarn)$/) { $tag .=
" M:3:" }
+ elsif ($word =~
/^ziv(abrant|c’har|esker|lez|rec’h|ronn|orzhed|jod|skoaz|skouarn)$/) { $tag .=
" M:1:1b:" }
elsif ($lemma =~ /^gou[ei]/i) {
if ($word =~ /^ou[ei]/i) { $tag .= " M:1:1a:1b:4:" }
elsif ($first_letter_word eq 'k') { $tag .= " M:3:" }
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits