This project conjugates verbs in Spanish (-ar, -er, -ir) to conjugations in Andalûh EPA (Êttandâ pal Andalûh) (-âh, -êh, -îh). Also conjugates Andalûh EPA verbs directly.
The Andalusian varieties of [Spanish] (Spanish: andalûh; Andalusian) are spoken in Andalusia, Ceuta, Melilla, and Gibraltar. They include perhaps the most distinct of the southern variants of peninsular Spanish, differing in many respects from northern varieties, and also from Standard Spanish. Further info: https://en.wikipedia.org/wiki/Andalusian_Spanish.
This package introduces transliteration functions to convert español (spanish) spelling to andaluz. As there's no official or standard andaluz spelling, andaluh-py is adopting the EPA proposal (Er Prinzipito Andaluh). Further info: https://andaluhepa.wordpress.com. Other andaluz spelling proposals are planned to be added as well.
- Conjugation in Python: Uses
verbecclibrary directly as underlying spanish verbs conjugation library. - Transliteration to EPA: Uses
andaluhto transliterate from Spanish orthography to the Andalûh EPA proposal. - Handling of irregularities: Applies specific normalizations and corrections for irregular and regular verbs with special endings and particular pronouns.
- Python 3.12 or higher
- Virtualenv recommended
-
Clone the repository:
git clone https://github.com/andalugeeks/andaluh-verbs cd andaluh-verbs -
Create and activate the virtual environment:
python3 -m venv .venv source .venv/bin/activate -
Install dependencies:
pip install -r requirements.txt
-
Install the package in editable mode (optional):
pip install -e . -
Verify the installation:
python3 run_andaluh_verbs.py --q "jocifar"
python3 run_andaluh_verbs.py --q "jocifar"python3 -m andaluh_verbs --q "jocifar"andaluh-verbs --q "jocifar"from andaluh_verbs import Conjugador
conj = Conjugador('jocifar')
result = conj.conjugate()
print(result)--q: verb to conjugate (required)
Example:
python3 run_andaluh_verbs.py --q "jocifar"run_andaluh_verbs.py- Executable script that takes the verb from
--q. - Loads the logic from
andaluh_verbs.cliand exposes CLI behavior.
- Executable script that takes the verb from
andaluh_verbs/andaluh_verbs/core.py: centralizes theConjugadorclass, verb corrections, and form mapping.andaluh_verbs/cli.py: defines the program entry, parameter parsing, and JSON output.andaluh_verbs/__main__.py: allows running the package withpython3 -m andaluh_verbs.
requirements.txt- Lists the necessary dependencies:
andaluhandverbecc.
- Lists the necessary dependencies:
andaluh-py @ https://github.com/andalugeeks/andaluh-pyverbecc @ git+https://github.com/bretttolbert/verbecc.git
Check the LICENSE file for more details.