diff --git a/spacy/language.py b/spacy/language.py index 980af0734..964cbd8ce 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -82,6 +82,22 @@ class Language(object): def is_title(string): return orth.is_title(string) + @staticmethod + def is_bracket(string): + return orth.is_bracket(string) + + @staticmethod + def is_quote(string): + return orth.is_quote(string) + + @staticmethod + def is_left_punct(string): + return orth.is_left_punct(string) + + @staticmethod + def is_right_punct(string): + return orth.is_right_punct(string) + @staticmethod def is_upper(string): return orth.is_upper(string) @@ -121,6 +137,10 @@ class Language(object): attrs.IS_SPACE: cls.is_space, attrs.IS_TITLE: cls.is_title, attrs.IS_UPPER: cls.is_upper, + attrs.IS_BRACKET: cls.is_bracket, + attrs.IS_QUOTE: cls.is_quote, + attrs.IS_LEFT_PUNCT: cls.is_left_punct, + attrs.IS_RIGHT_PUNCT: cls.is_right_punct, attrs.LIKE_URL: cls.like_url, attrs.LIKE_NUM: cls.like_num, attrs.LIKE_EMAIL: cls.like_email,