normalizer

Last updated:

0 purchases

normalizer Image
normalizer Images
Add to Cart

Description:

normalizer

Normalizer #
An extension to normalize strings(removes accents and diacritics)
Hecho en 🇵🇷 por Radamés J. Valentín Reyes
Import #
import 'package:normalizer/normalizer.dart';
copied to clipboard
Example #
Example 1:
String testString = "ñame, energía";
print(testString.normalize());
copied to clipboard
Example 2:
print("ñame" == "name");//false
print("ñame".normalize() == "name");//true
copied to clipboard
Uses #

In a search algorithm you can normalize strings before you compare them in order to get more matches when letters are similar(without diacritical symbols). Always remember to normalize both the search query and the i

Remaining work and work done #
If it has a ✔️ it should able to replace all or most characters that have such type of diacritical symbols
✔️ ACUTE ACCENT
✔️ UMLAUT
✔️ GRAVE ACCENT
✔️ MACRON
✔️ CIRCUMFLEX
✔️ CEDILLA
✔️ TILDE
❌ STREG
❌ BOLLE
❌ CARON
❌ BREVE

Contribute/donate by tapping on the Pay Pal logo/image #


References #

https://procaffenation.com/complete-guide-diacritical-marks/
https://en.wikipedia.org/wiki/Acute_accent
https://www.studying-in-germany.org/learn-german/german-umlauts/
http://web.cn.edu/kwheeler/documents/Diacritical.pdf
https://en.wikipedia.org/wiki/Diacritic
https://en.wikipedia.org/wiki/Circumflex
https://en.wikipedia.org/wiki/Cedilla
https://dart-lang.github.io/linter/lints/avoid_function_literals_in_foreach_calls.html

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.