ml_text_cleaner 0.1.0
ml_text_cleaner: ^0.1.0 copied to clipboard
A powerful and extensible text cleaning library for Dart and Flutter.
๐ ml_text_cleaner #
A powerful, modular, and extensible text cleaning library for Dart & Flutter.
โจ Features #
- Lowercase conversion (Unicode)
- Remove punctuation, numbers, special characters
- Remove HTML tags, URLs, emails, emojis
- Stopword removal (EN, TR)
- Chain custom filters via config
- Highly extensible
๐ Example #
final cleaner = BasicCleaner(
config: CleanConfig(
removeStopwords: true,
language: 'en',
),
);
final cleaned = cleaner.clean("Hello! This is <b>an</b> example text with emojis ๐.");
print(cleaned); // hello example text emojis
๐ฆ Installation #
dart pub add ml_text_cleaner
๐งช Run tests #
dart test
๐ License #
MIT