diff --git a/CHANGELOG.md b/CHANGELOG.md index a36adb8..cd96692 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # verbecc Changelog +- 1.9.1 [17 December 2023] + - Renamed Catalan 'preterit' to 'passat-simple' + - Cont. added more missing conjugation templates for Catalan, decent support for most Catalan verbs now + - Added `localization` module with localization functions `localize_mood` and `localize_tense` + - Removed pre-generated model .zip files + - Added dummy file in models directory as workaround for installation issue + - fixed KeyError with Spanish verb abolir + - 1.9.0 [December 2023] - Added limited support for Catalan language - Please help improve support for Catalan verb conjugation, PRs welcome @@ -8,7 +16,7 @@ - Updated dependencies (scikit-learn, etc.) - Now targetting Python 3.11 -- 1.8.1 [2022 December 28] +- 1.8.1 [28 December 2022] - Updated from Python 3.7 to Python 3.10 - Updated dependencies - Increased SGDClassifier max_iter from 4000 to 40000 diff --git a/EXAMPLE_CA_SER.md b/EXAMPLE_CA_SER.md index 010a9b4..d753af9 100755 --- a/EXAMPLE_CA_SER.md +++ b/EXAMPLE_CA_SER.md @@ -32,7 +32,7 @@ "vosaltres éreu", "ells eren" ], - "pretèrit": [ + "passat-simple": [ "jo fui", "tu fores", "ell fou", diff --git a/README.md b/README.md index d6a8ede..bd262f3 100755 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ - [HTTP API : /verbecc/conjugate/fr/manger](http://verbe.cc/verbecc/conjugate/fr/manger) ### Features -* Conjugate verbs in six romance languages: French, Spanish, Portuguese, Italian, Romanian, Catalan (limited-support) +* Conjugate verbs in six romance languages: French, Spanish, Portuguese, Italian, Romanian, Catalan * Uses machine learning techniques to predict conjugation of unknown verbs with 99% accurracy * Includes both simple and compound conjugations * Unit-tested diff --git a/pyproject.toml b/pyproject.toml index 7970ee7..96ac1be 100755 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "verbecc" -version = "1.9.0" +version = "1.9.1" dependencies = [ "lxml", "lxml-stubs", diff --git a/tests/test_inflector_ca.py b/tests/test_inflector_ca.py index ba18047..e26eb40 100755 --- a/tests/test_inflector_ca.py +++ b/tests/test_inflector_ca.py @@ -8,6 +8,7 @@ cg = Conjugator(lang='ca') +# TODO: Fix all of these missing templates @pytest.mark.skip("known failure") def test_all_verbs_have_templates(): """Have not finished adding templates for all verbs, so this should fail""" @@ -140,7 +141,11 @@ def test_find_verb_by_infinitive(): ('morir', 'indicatiu', 'present', ['jo moro', 'tu mors', 'ell mor', 'nosaltres morim', 'vosaltres moriu', 'ells moren']), ('eixir', 'indicatiu', 'present', - ['jo ixo', 'tu ixes', 'ell ix', 'nosaltres eixim', 'vosaltres eixiu', 'ells ixen']) + ['jo ixo', 'tu ixes', 'ell ix', 'nosaltres eixim', 'vosaltres eixiu', 'ells ixen']), + ('jaure', 'indicatiu', 'present', + ['jo jec', 'tu jeus', 'ell jeu', 'nosaltres jaiem', 'vosaltres jaieu', 'ells jeuen']), + ('jeure', 'indicatiu', 'present', + ['jo jec', 'tu jeus', 'ell jeu', 'nosaltres jaiem', 'vosaltres jaieu', 'ells jeuen']) ] @pytest.mark.parametrize("infinitive,mood,tense,expected_result", diff --git a/verbecc/data/conjugations-ca.xml b/verbecc/data/conjugations-ca.xml index e376d3a..ac51300 100755 --- a/verbecc/data/conjugations-ca.xml +++ b/verbecc/data/conjugations-ca.xml @@ -634,6 +634,99 @@ voler ("to want"), caldre ("must"), dir ("to say") and dur ("to take/get"). + + +