mirror of
https://github.com/marcogll/telegram_expenses_controller.git
synced 2026-01-13 13:25:15 +00:00
feat: Implement core application structure, AI extraction, persistence, and Telegram bot modules with updated configuration and dependencies.
This commit is contained in:
11
app/preprocessing/normalize_text.py
Normal file
11
app/preprocessing/normalize_text.py
Normal file
@@ -0,0 +1,11 @@
|
||||
"""
|
||||
Text normalization functions.
|
||||
"""
|
||||
|
||||
def normalize_text(text: str) -> str:
|
||||
"""
|
||||
Normalizes a string by converting it to lowercase and stripping whitespace.
|
||||
"""
|
||||
if not text:
|
||||
return ""
|
||||
return text.lower().strip()
|
||||
Reference in New Issue
Block a user