chore: move poetry scripts to poetry directory
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +1,4 @@
|
|||||||
__pycache__/
|
__pycache__/
|
||||||
.mypy_cache/
|
.mypy_cache/
|
||||||
|
.direnv/
|
||||||
|
.envrc
|
||||||
|
|||||||
@@ -2,12 +2,12 @@
|
|||||||
import itertools
|
import itertools
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from PyDictionary import PyDictionary
|
# from PyDictionary import PyDictionary
|
||||||
|
|
||||||
dictionary = PyDictionary()
|
# dictionary = PyDictionary()
|
||||||
|
#
|
||||||
def translate_en_de(word):
|
# def translate_en_de(word):
|
||||||
return dictionary.translate(word, "de")
|
# return dictionary.translate(word, "de")
|
||||||
|
|
||||||
def pronunciation(word, lang="de"):
|
def pronunciation(word, lang="de"):
|
||||||
command = ["espeak", "-x", "-q", "-v", lang, word]
|
command = ["espeak", "-x", "-q", "-v", lang, word]
|
||||||
@@ -20,5 +20,5 @@ def is_rhyme(word1, word2, lang="de"):
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
print(pronunciation("hallo welt"))
|
print(pronunciation("hallo welt"))
|
||||||
print(translate_en_de("woe"))
|
# print(translate_en_de("woe"))
|
||||||
print(is_rhyme("welt", "geld"))
|
print(is_rhyme("welt", "geld"))
|
||||||
Reference in New Issue
Block a user