Handle special classes of pos.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 30 Mar 2016 20:31:12 +0300
changeset 422 c97e9c1febe8
parent 421 10b27dd321ba
child 423 6a772e1fc63d
Handle special classes of pos.
py/gadict.py
--- a/py/gadict.py	Wed Mar 30 20:30:43 2016 +0300
+++ b/py/gadict.py	Wed Mar 30 20:31:12 2016 +0300
@@ -38,7 +38,7 @@
     HEADWORD_RE = regex.compile(r"^(\p{L}.*)$")
     HEADWORD_VAR_RE = regex.compile(r"^ +(s|pl|v[123]|male|female|comp|super)$")
     HEADWORD_PRON_RE = regex.compile(r"^ +\[([\p{L}' ]+)\]$")
-    TRANSL_POS_RE = regex.compile(r"^n|pron|adj|v|adv|prep|conj|num|int|phr\.v|abbr|prefix$")
+    TRANSL_POS_RE = regex.compile(r"^n|pron|adj|v|adv|prep|conj|num|int|phr|phr\.v|abbr|prefix$")
     TRANSL_RE = regex.compile(r"^(ru|uk|la|en): ([\p{L}(].*)$")
     TRANSL_EX_RE = regex.compile(r"^(ru|uk|la|en)> (\p{L}.*)$")
     TOPIC_RE = regex.compile(r"^topic: (\p{L}.*)$")