]> gitweb.pimeys.fr Git - bots/hung.git/blobdiff - convert_dico.py
À la génération du dico, on élimine les mots terminant par un -
[bots/hung.git] / convert_dico.py
index eef85750cccc2ab847a4fcc2e0519d28e5dceca3..3a8362c14b4d1c34d6e1e9e62866ba7e13166f9a 100644 (file)
@@ -45,7 +45,10 @@ def maju(texte):
     return texte.upper()
 
 l=[[maju(i[0]),i[0]+" : "+i[1].replace("\\n","; ")] for i in l 
-    if len(i[0])>=8 and not " " in i[0]]
+    if len(i[0])>=8 
+       and not " " in i[0]
+       and not i[0][-1]=='-'] # les mots finissant par un tiret foiraient
+                              # en plus ils sont pas intéressants, donc on vire
 
 f1=open("mots.txt.out","w")
 f2=open("definitions.txt.out","w")