telugu-language-tools 5.0.4__py3-none-any.whl → 5.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of telugu-language-tools might be problematic. Click here for more details.

telugu_engine/__init__.py CHANGED
@@ -28,11 +28,22 @@ v5.0 Features:
28
28
  # Main API - transliteration
29
29
  from .transliterator import (
30
30
  eng_to_telugu,
31
- transliterate_word,
32
- transliterate_sentence,
33
- validate_v3_compliance as _validate_translit_v3
34
31
  )
35
32
 
33
+ def transliterate_word(word: str) -> str:
34
+ """Transliterate a single word."""
35
+ return eng_to_telugu(word)
36
+
37
+ def transliterate_sentence(sentence: str) -> str:
38
+ """Transliterate a complete sentence."""
39
+ words = sentence.split()
40
+ return ' '.join(eng_to_telugu(word) for word in words)
41
+
42
+ def validate_v3_compliance(text: str) -> dict:
43
+ """Validate v3 compliance using the v3_validator module."""
44
+ from .v3_validator import validate_v3_compliance as validator
45
+ return validator(text)
46
+
36
47
  # Grammar module
37
48
  from .grammar import (
38
49
  conjugate_verb,
@@ -83,7 +94,7 @@ from .enhanced_tense import (
83
94
  from .phonetic_matrix import map_sound
84
95
 
85
96
  # Public API
86
- __version__ = "5.0.4"
97
+ __version__ = "5.1.0"
87
98
  __author__ = "Telugu Library v3.0"
88
99
  __email__ = "support@telugulibrary.org"
89
100