diff --git a/spacy/orth.pyx b/spacy/orth.pyx index 882e06bf2..9d6495edf 100644 --- a/spacy/orth.pyx +++ b/spacy/orth.pyx @@ -1,4 +1,5 @@ # -*- coding: utf8 -*- +# cython: infer_types=True from __future__ import unicode_literals import unicodedata @@ -48,6 +49,21 @@ cpdef bint is_ascii(unicode string): else: return True +cpdef bint is_bracket(unicode string): + return False + +cpdef bint is_quote(unicode string): + if string in ('"', "'"): + return True + else: + return False + +cpdef bint is_left_punct(unicode string): + return False + +cpdef bint is_right_punct(unicode string): + return False + cpdef bint is_title(unicode string): return string.istitle()