You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+91-54Lines changed: 91 additions & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,12 @@
6
6
[](https://github.com/bretttolbert/verbecc/actions/workflows/python-package.yml?query=branch%3Amain)
7
7
8
8
##### [EN] Verbs completely conjugated: verb conjugations for French, Spanish, Portuguese, Italian, Romanian and Catalan, enhanced by machine learning
9
-
##### [CA] Verbs completament conjugats: conjugacions verbals per a francès, espanyol, portuguès, italià, romanès i català, millorades per l'aprenentatge automàtic
10
-
##### [ES] Verbos completamente conjugados: conjugaciones de verbos en francés, español, portugués, italiano, rumano y catalán, mejoradas por aprendizaje automático
11
-
##### [FR] Verbes complètement conjugués: conjugaisons des verbes français, espagnol, portugais, italien, roumain et catalan, à l'aide de l'apprentissage automatique
12
-
##### [IT] Verbi completamente coniugati: coniugazioni di verbi per francese, spagnolo, portoghese, italiano, rumeno e catalano, migliorate dall'apprendimento automatico
13
-
##### [PT] Verbos completamente conjugados: conjugações verbais para francês, espanhol, português, italiano, romeno e catalão, aprimoradas pelo aprendizado de máquina
14
-
##### [RO] Verbe complet conjugate: conjugări de verbe pentru franceză, spaniolă, portugheză, italiană, română și catalană, îmbunătățite de învățarea automată
9
+
##### [CA] Verbs completament conjugats: conjugacions verbals per a francès, espanyol, portuguès, italià, romanès i CA, millorades per l'aprenentatge automàtic
10
+
##### [ES] Verbos completamente conjugados: conjugaciones de verbos en francés, ES, portugués, IT, rumano y catalán, mejoradas por aprendizaje automático
11
+
##### [FR] Verbes complètement conjugués: conjugaisons des verbes FR, espagnol, portugais, italien, roumain et catalan, à l'aide de l'apprentissage automatique
12
+
##### [IT] Verbi completamente coniugati: coniugazioni di verbi per francese, spagnolo, portoghese, IT, rumeno e catalano, migliorate dall'apprendimento automatico
13
+
##### [PT] Verbos completamente conjugados: conjugações verbais para francês, espanhol, PT, IT, romeno e catalão, aprimoradas pelo aprendizado de máquina
14
+
##### [RO] Verbe complet conjugate: conjugări de verbe pentru franceză, spaniolă, portugheză, italiană, RO și catalană, îmbunătățite de învățarea automată
15
15
16
16
### Live Demo
17
17
-[Web GUI](http://verbe.cc)
@@ -34,18 +34,25 @@ pip install .
34
34
35
35
### Examples
36
36
37
+
In the following examples, this `import` statement will be required:
38
+
39
+
```python
40
+
>>>from verbecc import Conjugator, LangCodeISO639_1 as Lang
41
+
```
42
+
37
43
In the following examples, the following function will be used to make the output more readable:
-[Multi-Language Conjugation using English mood and tense names via localization module](#example-multi-language-conjugation-using-english-mood-and-tense-names-via-localization-module)
55
+
-[Multi-Language Conjugation using EN mood and tense names via localization module](#example-multi-language-conjugation-using-EN-mood-and-tense-names-via-localization-module)
49
56
-[Catalan `ser` (to be) - with pronouns, without alternate conjugations (original behavior)](#example-catalan-ser-to-be)
50
57
-[Catalan `ser` (to be) - without pronouns, including alternate conjugations (new features in 1.9.7)](#example-catalan-ser-to-be-with-alternate-conjugations-without-pronouns)
51
58
-[Spanish ser (to be) - with pronouns, without alternate conjugations (original behavior)](#example-spanish-ser-to-be)
@@ -54,10 +61,39 @@ def printjson(c):
54
61
-[Portuguese ser (to be) - with pronouns, without alternate conjugations (original behavior)](#example-portuguese--ser-to-be)
55
62
-[Romanian fi (to be) - with pronouns, without alternate conjugations (original behavior)](#conjugation-example-romanian-fi-to-be)
56
63
64
+
### Typing - Parameter and Data Type Annotations
65
+
66
+
Originally `verbecc` used strings for most parameters. `verbecc` is now fully type-annotated but strings are still supported for backwards-compatibility and ease of use. This is accomplished using `StrEnum` for parameters and by defining a hierarchy of `typing` type definitions for the returned data objects (See [src/defs/types/conjugation.py](./verbecc/src/defs/types/conjugation.py)).
67
+
68
+
Typing transition guide:
69
+
70
+
- Instead of `lang='fr'` use `lang=Lang.fr` after the import `from verbecc import LangCodeISO639_1 as Lang`
71
+
- Instead of `mood="indicatif"`
72
+
- use `mood=Mood.fr.Indicatif` after the import `from verbecc import Mood`
73
+
- or use `mood=Mood.Indicatif` after the import `from verbecc import MoodFr as Mood`
74
+
- Instead of `tense="présent"`
75
+
- use `tense=Tense.fr.Présent` after the import `from verbecc import Tense`
76
+
- or use `tense=Tense.Présent` after the import `from verbecc import TenseFr as Tense`
77
+
- Instead of `gender='f'` use `gender=Gender.f` after the import `from verbecc import Gender`
0 commit comments