Skip to content

Commit 573e543

Browse files
committed
Alphanumeric -> alphabetic [ci skip]
see explosion/spacy-course#38
1 parent cbc2cee commit 573e543

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

spacy/lexeme.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ cdef class Lexeme:
375375
Lexeme.c_set_flag(self.c, IS_STOP, x)
376376

377377
property is_alpha:
378-
"""RETURNS (bool): Whether the lexeme consists of alphanumeric
378+
"""RETURNS (bool): Whether the lexeme consists of alphabetic
379379
characters. Equivalent to `lexeme.text.isalpha()`.
380380
"""
381381
def __get__(self):

spacy/matcher/_schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"$ref": "#/definitions/integer_value",
112112
},
113113
"IS_ALPHA": {
114-
"title": "Token consists of alphanumeric characters",
114+
"title": "Token consists of alphabetic characters",
115115
"$ref": "#/definitions/boolean_value",
116116
},
117117
"IS_ASCII": {

website/docs/usage/rule-based-matching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ rule-based matching are:
163163
| `TEXT` <Tag variant="new">2.1</Tag> | unicode | The exact verbatim text of a token. |
164164
| `LOWER` | unicode | The lowercase form of the token text. |
165165
|  `LENGTH` | int | The length of the token text. |
166-
|  `IS_ALPHA`, `IS_ASCII`, `IS_DIGIT` | bool | Token text consists of alphanumeric characters, ASCII characters, digits. |
166+
|  `IS_ALPHA`, `IS_ASCII`, `IS_DIGIT` | bool | Token text consists of alphabetic characters, ASCII characters, digits. |
167167
|  `IS_LOWER`, `IS_UPPER`, `IS_TITLE` | bool | Token text is in lowercase, uppercase, titlecase. |
168168
|  `IS_PUNCT`, `IS_SPACE`, `IS_STOP` | bool | Token is punctuation, whitespace, stop word. |
169169
|  `LIKE_NUM`, `LIKE_URL`, `LIKE_EMAIL` | bool | Token text resembles a number, URL, email. |

website/docs/usage/spacy-101.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ apple = doc[0]
573573
print("Fine-grained POS tag", apple.pos_, apple.pos)
574574
print("Coarse-grained POS tag", apple.tag_, apple.tag)
575575
print("Word shape", apple.shape_, apple.shape)
576-
print("Alphanumeric characters?", apple.is_alpha)
576+
print("Alphabetic characters?", apple.is_alpha)
577577
print("Punctuation mark?", apple.is_punct)
578578

579579
billion = doc[10]

0 commit comments

Comments
 (0)