Releases: MahtaFetrat/Persian-Informal-Text-Detector
Releases · MahtaFetrat/Persian-Informal-Text-Detector
Version 0.1.1
Description:
This is the first stable release of the Persian Informal Text Detector. In this version, we have implemented a rule-based informal text detector using regular expressions. The detector can identify informal Persian text by detecting certain indicators such as informal words and verb formats. Some of the informal text indicators are derived from a Wikipedia page listed in the project's README.
This release includes:
- Implementation of the informal text detector function.
- Support for detecting informal Persian text with customizable threshold levels.
- Example usage and installation guide provided in the README.
Users can install the Persian Informal Text Detector using pip:
pip install informal_detector
Example Usage:
from informal_detector import is_informal
# Returns True since the text contains at least one informal indicator
result1 = is_informal("دلم میخواد برم خونه", threshold=1)
print(result1) # Output: True
# Returns False since the text does not contain enough informal indicators
result2 = is_informal("نباید به خانه بروم", threshold=1)
print(result2) # Output: False
Thank you for trying out the Persian Informal Text Detector! We welcome feedback and contributions from the community.