package spelll

Build not checked
  1. Overview
  2. Docs
Fuzzy string searching, using Levenshtein automaton

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.3.tar.gz
md5=d07f33370540c0fe0ba3c8e0112299cf
sha512=5ba25cf300538bcb27bd63f272f001114b0f07a7fe45d287d33d13261d6c366ee59f897867d76fcabc898efd7ac400b598cb445f11051db7cb1448448f3a4020

Description

Tags

spell levenshtein automaton typo edit distance

Added to opam-repository:

README

Spelll build status

Fuzzy string searching, using Levenshtein automaton. Can be used for spell-checking.

API documentation can be found here, and the source code here.

Some examples:

# #require "spelll";;
# let dfa = Spelll.of_string ~limit:1 "hello";;
val dfa : Spelll.automaton = <abstr>
# Spelll.match_with dfa "hell";;
- : bool = true
# Spelll.match_with dfa "hall";;
- : bool = false
# let idx = Spelll.Index.of_list ["hello", "world"; "hall", "vestibule"];;
val idx : string Spelll.Index.t = <abstr>
# Spelll.Index.retrieve_l idx ~limit:1 "hell" ;;
- : string list = ["world"; "vestibule"]
# Spelll.Index.retrieve_l idx ~limit:1 "hall" ;;
- : string list = ["vestibule"]

License

This software is free, under the BSD-2 license. See the LICENSE file.

Build

You only need OCaml (>= 4.02 should be enough) and dune and seq. Type

$ make
$ make install

Dependencies (3)

  1. seq
  2. base-bytes
  3. dune >= "1.1" & < "3.0"

Dev Dependencies (3)

  1. odoc with-doc
  2. mdx with-test
  3. qcheck with-test & >= "0.6"

Optional Dependencies

None

Used by (4)

  1. docfd
  2. dolmen_type < "0.8"
  3. forester >= "5.0"
  4. soupault < "4.0.1"

Conflicts

None

Build status

Results of building spelll with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

This version is not in the latest run; the versions below are.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
0.4 good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure