string_normalizer
0.4.0, released a year ago by lamnhan.dev
Removes accents and diacritics from strings with extension methods.
What it does
Helpful utility package to strip accents, diacritics, and convert special unicode, mathematical, or symbol characters back to their base ASCII equivalents. It provides both static methods and string extensions for easy usage.
AI-written summary of version 0.4.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to normalize search queries by stripping diacritics and accents.
- You want to convert accented strings to plain ASCII representations.
Skip it when
- You need full localization, pluralization, or locale-aware formatting libraries.
Strengths
- Provides convenient string extension methods like `.normalize()` and `.nml`.
- Supports multiple languages including Greek, English, and various symbols or mathematical characters.
Weaknesses
- Limited in scope to string normalization and diacritic removal.
- Database updates depend on automated crawlers parsing external unicode files.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
final normalized = 'Đây là chữ có dấu'.normalize();
// Result: Day la chu co dauAlternatives
Packages that do the same job and could replace string_normalizer.
- validators2
String validation and sanitization for Dart.
83Compare - emoji_extension
Emojis for Flutter & Dart with Unicode 17.0 support and a powerful String extension
54Compare - chalk
Style your terminal strings with an expressive and chained API.
40Compare - remove_diacritic
Package to replace diacritics and accents with equivalent characters.
40Compare
Works with
Packages commonly used together with string_normalizer: ones it builds on, ones built on it, and its own family.