Overview
safe_text is a Flutter package designed to enhance text input safety by filtering out inappropriate words and detecting phone numbers in multiple formats, including those expressed through multiplier words (e.g., 'two hundred'). It supports cross-platform applications on Android, iOS, Web, macOS, Windows, and Linux. The package helps maintain content integrity in user-generated text, making it ideal for chat apps, forms, and community platforms where moderation is essential. It integrates seamlessly with Flutter projects via pub.dev and provides reliable, real-time text analysis.
Use cases
- Chat applications
- User-generated content moderation
- Form input sanitization
- Community platform safety
- Phone number extraction from text
- Content filtering in messaging apps
Key features
- Bad word filtering
- Multi-format phone number detection
- Support for multiplier-based number expressions
- Cross-platform compatibility
- Easy integration with Flutter
- Real-time text analysis
Suitable for
- Developers building secure messaging apps
- Teams needing automated content moderation
- Apps handling user-submitted text
- Projects requiring phone number recognition
- Flutter developers focused on text safety
- Applications targeting global audiences with diverse text patterns
Considerations
- Requires regular update of bad word list
- May need customization for region-specific profanity
- Performance impact with large text batches
- Limited to predefined detection rules
- Not suitable for deep semantic analysis
- Depends on accuracy of source word database