Les forums → Grammalecte → Grammalecte-2.0.0 nécessite Python-3.7+
$ cat foo.txt
Ceci est une test.
$ python3 /home/pel/Downloads/Grammalecte-fr-v1.9.0/grammalecte-cli.py -f ~/foo.txt -roff apostrophe_typographique -j -cl -owe -ctx
{ "grammalecte": "1.9.0", "lang": "fr", "data" : [
{"lGrammarErrors": [{"sLineId": "#15937", "sRuleId": "g2__gn_une_1m__b1_a1_1", "sType": "gn", "aColor": [64, 127, 191], "sMessage": "Accord de genre erroné : « test » est masculin.", "aSuggestions": ["un"], "URL": "", "sUnderlined": "une", "sBefore": "Ceci est ", "sAfter": " test.", "nEndY": 1, "nEndX": 12, "nStartY": 1, "nStartX": 9}], "lSpellingErrors": []}
]}
$ python3 /home/pel/Downloads/Grammalecte-fr-v2.0.0/grammalecte-cli.py -f ~/foo.txt -j -cl -owe -ctx
Python 3.7+ required
$ python3 --version
Python 3.6.9
$ type python3
python3 is hashed (/usr/bin/python3)
$ cat /etc/issue
Ubuntu 18.04.5 LTS \n \l
if sys.version < "3.7":
print("Python 3.7+ required")
return
mais si dans “grammalecte-cli.py” tu supprimes les lignes [...]
Si supprimer ces lignes de la CLI suffisent, la prochaine version de Grammalecte CLI demandera
une version plus basse.