telugu-language-tools 5.0.4__py3-none-any.whl → 5.5.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
@@ -5,7 +5,6 @@ Telugu Library v5.0 - Modern Telugu Engine
5
5
  Complete v3.0 compliant Telugu processing library with full v3.0 support:
6
6
  - transliterator: Modern transliteration (no archaic letters)
7
7
  - grammar: Modern grammar (verbs, cases, SOV)
8
- - tense_engine: Integrated tense processing
9
8
  - enhanced_tense: v5.0 enhanced tense (present continuous, all tenses)
10
9
  - v3_validator: v3.0 compliance validation
11
10
  - phonetic_matrix: Phonetic normalization
@@ -28,11 +27,22 @@ v5.0 Features:
28
27
  # Main API - transliteration
29
28
  from .transliterator import (
30
29
  eng_to_telugu,
31
- transliterate_word,
32
- transliterate_sentence,
33
- validate_v3_compliance as _validate_translit_v3
34
30
  )
35
31
 
32
+ def transliterate_word(word: str) -> str:
33
+ """Transliterate a single word."""
34
+ return eng_to_telugu(word)
35
+
36
+ def transliterate_sentence(sentence: str) -> str:
37
+ """Transliterate a complete sentence."""
38
+ words = sentence.split()
39
+ return ' '.join(eng_to_telugu(word) for word in words)
40
+
41
+ def validate_v3_compliance(text: str) -> dict:
42
+ """Validate v3 compliance using the v3_validator module."""
43
+ from .v3_validator import validate_v3_compliance as validator
44
+ return validator(text)
45
+
36
46
  # Grammar module
37
47
  from .grammar import (
38
48
  conjugate_verb,
@@ -44,16 +54,7 @@ from .grammar import (
44
54
  apply_vowel_harmony
45
55
  )
46
56
 
47
- # Tense engine
48
- from .tense_engine import (
49
- detect_tense,
50
- detect_person,
51
- conjugate_english_verb,
52
- process_simple_sentence,
53
- process_complex_sentence,
54
- apply_formality,
55
- validate_tense_conjugation
56
- )
57
+
57
58
 
58
59
  # v3.0 validator
59
60
  from .v3_validator import (
@@ -83,7 +84,7 @@ from .enhanced_tense import (
83
84
  from .phonetic_matrix import map_sound
84
85
 
85
86
  # Public API
86
- __version__ = "5.0.4"
87
+ __version__ = "5.5.0"
87
88
  __author__ = "Telugu Library v3.0"
88
89
  __email__ = "support@telugulibrary.org"
89
90
 
@@ -102,14 +103,7 @@ __all__ = [
102
103
  "check_vowel_harmony",
103
104
  "apply_vowel_harmony",
104
105
 
105
- # Tense
106
- "detect_tense",
107
- "detect_person",
108
- "conjugate_english_verb",
109
- "process_simple_sentence",
110
- "process_complex_sentence",
111
- "apply_formality",
112
- "validate_tense_conjugation",
106
+
113
107
 
114
108
  # Enhanced Tense (v5.0 - Full v3.0 Support)
115
109
  "translate_sentence",
@@ -147,8 +141,9 @@ def translate(text: str, include_grammar: bool = False) -> str:
147
141
  Telugu text
148
142
  """
149
143
  if include_grammar:
150
- # Apply full grammar processing
151
- return process_simple_sentence(text)
144
+ # Apply full grammar processing using enhanced tense engine
145
+ from .enhanced_tense import translate_sentence
146
+ return translate_sentence(text)
152
147
  else:
153
148
  # Just transliterate
154
149
  return eng_to_telugu(text)