string_processor 2.0.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 50

string_processor #

This library contains utilities for processing strings, such as higher level functions for getting the highest matched string from given a list of strings and a string to match, as well as lower level functions such as getting the number of words matched in the given string(s). Strings can be matched taking into consideration things like article ("a", "an", and "the") and special characters. There are also utility functions to aid in parsing strings, such as removing special characters around the words in a string.


  • Update link to new repo.


  • Raised minimum Dart version from 2.0.0-dev.56.0 to 2.1.0.

v1.0.3 #

  • Fixed package description length.

v1.0.2 #

  • Fixed package description length.

v1.0.1 #

  • Fixed package description length.

v1.0.0 #

  • Released the first version.


import 'package:string_processor/string_processor.dart';

void main() => print(getHighestMatch(
    ['I am a boy', 'Bob the Builder is fun'], 'Bob is a boy.',
    ignoreArticles: true, matchCaseInsensitively: false));

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  string_processor: ^2.0.1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:string_processor/string_processor.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Apr 4, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Health suggestions

Fix lib/string_processor.dart. (-0.50 points)

Analysis of lib/string_processor.dart reported 1 hint:

line 187 col 7: Use isNotEmpty instead of length


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
Dev dependencies
link_checker ^2.0.1
test ^1.5.3