diff options
author | Sean B. Palmer <http://inamidst.com/sbp/> | 2008-03-31 16:17:32 +0100 |
---|---|---|
committer | Sean B. Palmer <http://inamidst.com/sbp/> | 2008-03-31 16:17:32 +0100 |
commit | 286d4a8497621d2f3c0f1f8d66db60b11c87fad5 (patch) | |
tree | 23493e843bcb1a1d6b25346a3dfd6290df46d5ba /modules/etymology.py | |
parent | fb2cd452e963b8bc048161036903cd82d3b113f0 (diff) | |
download | bot-286d4a8497621d2f3c0f1f8d66db60b11c87fad5.tar.gz bot-286d4a8497621d2f3c0f1f8d66db60b11c87fad5.tar.bz2 bot-286d4a8497621d2f3c0f1f8d66db60b11c87fad5.zip |
New "limit" config variable, and some module fixes.
Diffstat (limited to 'modules/etymology.py')
-rwxr-xr-x | modules/etymology.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/etymology.py b/modules/etymology.py index 52ae1bc..a26f06f 100755 --- a/modules/etymology.py +++ b/modules/etymology.py @@ -21,7 +21,8 @@ r_whitespace = re.compile(r'[\t\r\n ]+') abbrs = [ 'cf', 'lit', 'etc', 'Ger', 'Du', 'Skt', 'Rus', 'Eng', 'Amer.Eng', 'Sp', 'Fr', 'N', 'E', 'S', 'W', 'L', 'Gen', 'J.C', 'dial', 'Gk', - '19c', '18c', '17c', '16c', 'St', 'Capt' + '19c', '18c', '17c', '16c', 'St', 'Capt', 'obs', 'Jan', 'Feb', 'Mar', + 'Apr', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ] t_sentence = r'^.*?(?<!%s)(?:\.(?= [A-Z0-9]|\Z)|\Z)' r_sentence = re.compile(t_sentence % ')(?<!'.join(abbrs)) |