rwse-checker
Real-word spelling errors (RWSEs) pose special challenges for detection methods, as they ‘hide’ in the form of another existing word and in many cases even fit in syntactically. rwse-checker is a modern Transformer-based implementation of earlier probabilistic methods based on confusion sets. It detects RWSEs with a good balance between missing errors and raising too many false alarms. The confusion sets are dynamically configurable, allowing teachers to easily adjust which errors trigger feedback.
Example Usage
from rwse import RWSE_Checker
checker = RWSE_Checker()
checker.set_confusion_sets([['their','there'],['to','too','two']])
print(checker.check("there", "I want to buy [MASK] cars."))
print(checker.check("too", "I want [MASK] buy their cars."))
which yields
('their', 0.003510827198624611)
('to', 0.9989504218101501)
Citation
If you are using this tool, please cite Transformer-Based Real-Word Spelling Error Feedback with Configurable Confusion Sets (Zesch et al., BEA 2025)
The experimental code for this paper is found in https://github.com/zesch/rwse-experiments
@inproceedings{zesch-etal-2025-transformer,
title = "Transformer-Based Real-Word Spelling Error Feedback with Configurable Confusion Sets",
author = "Zesch, Torsten and
Gardner, Dominic and
Bexte, Marie",
booktitle = "Proceedings of the 20th Workshop on Innovative Use of NLP for Building Educational Applications (BEA 2025)",
month = jul,
year = "2025",
address = "Vienna, Austria",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2025.bea-1.29/",
doi = "10.18653/v1/2025.bea-1.29",
pages = "375--383",
ISBN = "979-8-89176-270-1",
}
Metadata
Release files for rwse-checker 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rwse_checker-0.0.4.tar.gz | 6.2 kB | Without provenance | Details for rwse_checker-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rwse_checker-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for rwse_checker-0.0.4-py3-none-any.whl |
Total release size: 13.8 kB
Release files / rwse_checker-0.0.4.tar.gz
| Download URL | rwse_checker-0.0.4.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7568682f57767ad0a35848095bc8dc31b139cb454cf451a923c79368aa0141c8
|
|
BLAKE2b-256 checksum How to use checksums |
4019531b39cf1b96d2a508f3a5de10f9582fd805ce38e13ef0a721a5ecde87d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.13.0 Darwin/24.6.0
|
Release files / rwse_checker-0.0.4-py3-none-any.whl
| Download URL | rwse_checker-0.0.4-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
157cb3951143ac5d98f48982f006bcbe1052416d98ed0256fc9d2be67cc3487e
|
|
BLAKE2b-256 checksum How to use checksums |
a47d38f5c4dba720998e61ae6e0323cc7bf6c75785f34d2f199a52461c4788cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.13.0 Darwin/24.6.0
|
Security for rwse-checker 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.