Skip to content
pubscout

tiengviet

1.0.0, released 3 years ago by uit.social

Converts Vietnamese text with signs and accents to unsigned strings.

WASM-ready
$ flutter pub add tiengviet
Source repository

What it does

It provides a utility method to strip diacritics and signs from Vietnamese strings, turning them into plain ASCII/unsigned representations. It uses an optimized hashmap engine by default for parsing performance.

AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to normalize Vietnamese text for search indices or URLs.
  • You want to remove diacritical marks from Vietnamese strings.

Skip it when

  • You need a general-purpose localization or multi-language translation engine beyond Vietnamese diacritic removal.

Strengths

  • Very simple and straightforward usage with a single method call.
  • Engine optimized for performance using hashmaps.

Weaknesses

  • Limited scope, solely focused on converting Vietnamese text to unsigned form.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:tiengviet/tiengviet.dart';

print(TiengViet.parse('Xin chào việt nam')); // Xin chao viet nam

Alternatives

Packages that do the same job and could replace tiengviet.

  • validators2

    String validation and sanitization for Dart.

  • string_to_color

    Convert strings to colors, hex strings, or hex integers in Dart and Flutter.

  • vnlunar

    Convert between Vietnamese Lunar Calendar and Solar calendars.

  • hex

    Provides simple HEX.encode and HEX.decode functions for converting between byte lists and hexadecimal strings.