diff --git a/app/utils/classification_rules.py b/app/utils/classification_rules.py index 4c8f61c2..d8f440ab 100644 --- a/app/utils/classification_rules.py +++ b/app/utils/classification_rules.py @@ -31,7 +31,7 @@ logger = logging.getLogger(__name__) # Pre-built categories # --------------------------------------------------------------------------- -#: Canonical category names recognised by the system. Users may also define +#: Canonical category names recognized by the system. Users may also define #: their own categories via custom rules. BUILTIN_CATEGORIES: dict[str, str] = { "invoice": "Invoice", diff --git a/tests/test_classification_rules.py b/tests/test_classification_rules.py index 1005022e..a4bacaec 100644 --- a/tests/test_classification_rules.py +++ b/tests/test_classification_rules.py @@ -104,7 +104,7 @@ class TestFilenamePatternMatching: result = classify_document(filename="Payment_Receipt.pdf") assert result.category == "receipt" - def test_unrecognised_filename(self): + def test_unrecognized_filename(self): """A generic filename with no keywords should return 'unknown'.""" result = classify_document(filename="document_12345.pdf") assert result.category == "unknown"