We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b71a00e commit ef469fcCopy full SHA for ef469fc
src/ainconv/conversion/latin.py
@@ -1,8 +1,3 @@
1
-VOWELS = "aeiou"
2
-CONSONANTS = "ptckmnshwry’"
3
-
4
-from unicodedata import normalize
5
6
ACCENTED_VOWELS = {
7
"á": "a",
8
"é": "e",
@@ -11,6 +6,11 @@
11
"ú": "u",
12
}
13
9
+VOWELS = "aeiouáéíóúâêîôûāēīōū"
10
+CONSONANTS = "ptckmnshwry’"
+
+from unicodedata import normalize
14
15
def clean(text: str) -> str:
16
"""Clean up Latin script.
tests/test_syllable.py
@@ -18,6 +18,8 @@
18
"ka",
19
"re",
20
],
21
+ "tané": ["ta", "né"],
22
+ "ônâ": ["ô", "nâ"],
23
24
25
0 commit comments