- Replaces diacritics & accents with original text
final normalized = StringCleanUtils.normalize('๐๐๐๐๐๐๐ ๐๐ ๐๐๐๐๐๐ - ๐๐๐๐ ๐๐๐๐๐');
print(normalized); // 'harleys in hawaii - katy perry';
final normalized2 = StringCleanUtils.normalize('๐ป๐๐ โ๐ฆ๐๐๐ ๏ผข๏ฝ๏ฝ๏ฝ๏ฝ Fox ๐๐ฒ๐ช๐ญ๐ข๐ก โโฅโโก สษฅว ๐๐ฎ๐๐ ๐ณ๐๐');
print(normalized2); // 'The Quick Brown Fox Jumped over the Lazy Dog';
- Remove symbols from text
final normalized = StringCleanUtils.removeSymbols('The [Quick }Brown Fox %Jumped over ^the Lazy @Dog');
print(normalized); // 'The Quick Brown Fox Jumped over the Lazy Dog';
- Remove symbols & whitespaces from text
final normalized = StringCleanUtils.removeSymbolsAndWhitespaces('The [Quick }Brown Fox %Jumped over ^the Lazy @Dog');
print(normalized); // 'TheQuickBrownFoxJumpedovertheLazyDog';
- confusable & diacritics rules are generated with
confusable_to_map.dart
relying onconfusables.txt
&diacritics.dart
- confusable source: https://www.unicode.org/Public/security/10.0.0/confusables.txt
- diacritics source: https://www.npmjs.com/package/diacritics-map