fuzzyd 2.2.0-beta

fuzzy search library


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

fuzzyd Build Status

A D language fuzzy search library.

Criteria

Score extra points when:

  • pattern is found at the beggining of the string.
  • pattern is at word boundary position.
  • case sensitive matches.

Penalty for:

  • isolated matches worth half of the points.

Usage

import fuzzyd.core;

string[] source = ["cd Documents"
                  ,"curl localhost/foo"
                  ,"rm -rf Downloads"
                  ,"vi ~/Documents"];
auto result = new FuzzyResult[source.length];
auto fzy = fuzzy(source);

fzy("docts", result);
/* result =>
[FuzzyResult("cd Documents", 1050, [1, 4, 5, 10, 11], true),
 FuzzyResult("curl localhost/foo", 0, [], false),
 FuzzyResult("rm -rf Downloads", 20, [7, 8], false),
 FuzzyResult("vi ~/Documents", 1050, [5, 6, 7, 12, 13], true)]
*/

License

MIT

Authors:
  • Felipe Beline Baravieira
Dependencies:
none
Versions:
2.2.0-beta 2020-May-26
2.1.2-beta 2020-May-01
2.1.1-beta 2020-May-01
2.1.0-beta 2020-May-01
2.0.1-beta 2020-Apr-30
Show all 18 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 0 downloads total

Score:
0.9
Short URL:
fuzzyd.dub.pm