dart_levenshtein 1.0.1 icon indicating copy to clipboard operation
dart_levenshtein: ^1.0.1 copied to clipboard

Levenshtein distance implementation in Dart. The levenshtein distance can be invoked as a function or as a String extension.

Dart Levenshtein #

Levenshtein distance implementation in Dart.

Usage #

Here's an example code to compare two strings

import 'package:dart_levenshtein/dart_levenshtein.dart';

void main() async {
  // As String extension
  print(await 'kitten'.levenshteinDistance('sitten'));
  // As a function
  print(await 
3
likes
130
pub points
60%
popularity

Publisher

verified publisher iconmakepad.fr

Levenshtein distance implementation in Dart. The levenshtein distance can be invoked as a function or as a String extension.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Icon for licenses.Apache-2.0 (LICENSE)

More

Packages that depend on dart_levenshtein