Skip to content
pubscout

string_normalizer

0.4.0, released a year ago by lamnhan.dev

Removes accents and diacritics from strings with extension methods.

WASM-ready
$ flutter pub add string_normalizer
Source repository

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 dau

Alternatives

Packages that do the same job and could replace string_normalizer.

Works with

Packages commonly used together with string_normalizer: ones it builds on, ones built on it, and its own family.