The text-metrics package

[Tags:benchmark, bsd3, library, test]

Calculate various string metrics efficiently.


[Skip to Readme]

Properties

Versions 0.1.0, 0.2.0, 0.3.0
Change log CHANGELOG.md
Dependencies base (>=4.7 && <5.0), containers (>=0.5.6.2 && <0.6), text (>=0.2 && <1.3), vector (>=0.11 && <0.13) [details]
License BSD3
Author Mark Karpov <markkarpov92@gmail.com>
Maintainer Mark Karpov <markkarpov92@gmail.com>
Category Text, Algorithms
Home page https://github.com/mrkkrp/text-metrics
Bug tracker https://github.com/mrkkrp/text-metrics/issues
Source repository head: git clone https://github.com/mrkkrp/text-metrics.git
Uploaded Tue Jun 13 10:07:24 UTC 2017 by mrkkrp
Distributions Arch:0.3.0, LTSHaskell:0.3.0, NixOS:0.3.0, Stackage:0.3.0, Tumbleweed:0.2.0
Downloads 1332 total (422 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2017-06-13 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Flags

NameDescriptionDefaultType
dev

Turn on development settings.

DisabledManual

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for text-metrics

Readme for text-metrics-0.3.0

Text Metrics

License BSD3 Hackage Stackage Nightly Stackage LTS Build Status Coverage Status

The library provides efficient implementations of various strings metric algorithms. It works with strict Text values.

The current version of the package implements:

Comparison with the edit-distance package

There is edit-distance package whose scope overlaps with the scope of this package. The differences are:

  • edit-distance allows to specify costs for every operation when calculating Levenshtein distance (insertion, deletion, substitution, and transposition). This is rarely needed though in real-world applications, IMO.

  • edit-distance only provides Levenshtein distance, text-metrics aims to provide implementations of most string metrics algorithms.

  • edit-distance works on Strings, while text-metrics works on strict Text values.

Implementation

Although we originally used C for speed, currently all functions are pure Haskell tuned for performance. See this blog post for more info.

License

Copyright © 2016–2017 Mark Karpov

Distributed under BSD 3 clause license.