Skip to content

Commit

Permalink
Alphanumeric -> alphabetic [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
ines committed Oct 6, 2019
1 parent cbc2cee commit 573e543
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spacy/lexeme.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ cdef class Lexeme:
Lexeme.c_set_flag(self.c, IS_STOP, x)

property is_alpha:
"""RETURNS (bool): Whether the lexeme consists of alphanumeric
"""RETURNS (bool): Whether the lexeme consists of alphabetic
characters. Equivalent to `lexeme.text.isalpha()`.
"""
def __get__(self):
Expand Down
2 changes: 1 addition & 1 deletion spacy/matcher/_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
"$ref": "#/definitions/integer_value",
},
"IS_ALPHA": {
"title": "Token consists of alphanumeric characters",
"title": "Token consists of alphabetic characters",
"$ref": "#/definitions/boolean_value",
},
"IS_ASCII": {
Expand Down
2 changes: 1 addition & 1 deletion website/docs/usage/rule-based-matching.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ rule-based matching are:
| `TEXT` <Tag variant="new">2.1</Tag> | unicode | The exact verbatim text of a token. |
| `LOWER` | unicode | The lowercase form of the token text. |
|  `LENGTH` | int | The length of the token text. |
|  `IS_ALPHA`, `IS_ASCII`, `IS_DIGIT` | bool | Token text consists of alphanumeric characters, ASCII characters, digits. |
|  `IS_ALPHA`, `IS_ASCII`, `IS_DIGIT` | bool | Token text consists of alphabetic characters, ASCII characters, digits. |
|  `IS_LOWER`, `IS_UPPER`, `IS_TITLE` | bool | Token text is in lowercase, uppercase, titlecase. |
|  `IS_PUNCT`, `IS_SPACE`, `IS_STOP` | bool | Token is punctuation, whitespace, stop word. |
|  `LIKE_NUM`, `LIKE_URL`, `LIKE_EMAIL` | bool | Token text resembles a number, URL, email. |
Expand Down
2 changes: 1 addition & 1 deletion website/docs/usage/spacy-101.md
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ apple = doc[0]
print("Fine-grained POS tag", apple.pos_, apple.pos)
print("Coarse-grained POS tag", apple.tag_, apple.tag)
print("Word shape", apple.shape_, apple.shape)
print("Alphanumeric characters?", apple.is_alpha)
print("Alphabetic characters?", apple.is_alpha)
print("Punctuation mark?", apple.is_punct)

billion = doc[10]
Expand Down

0 comments on commit 573e543

Please sign in to comment.