0.0.0 • Published 8 months ago
@nlptools/comparison v0.0.0
@nlptools/comparison
Programmatically create text comparisons, powered by Demo Macro.
Getting started
# npm
$ npm install @nlptools/comparison
# yarn
$ yarn add @nlptools/comparison
# pnpm
$ pnpm add @nlptools/comparison
Usage
// diff
import { createDiffComparison } from "@nlptools/comparison";
const diff = createDiffComparison("Hello, world!", "Hello, world?", {
// options
ignoreCase: false,
lang: "en",
segmentation: "chars",
});
// similarity
import { createSimilarityComparison } from "@nlptools/comparison";
const similarity = createSimilarityComparison(
"Hello, world!",
"Hello, world?",
{
// options
lang: "en",
threshold: 10,
}
);
License
0.0.1-edge.9
9 months ago
0.0.1-edge.4
10 months ago
0.0.1-edge.11
9 months ago
0.0.1-edge.7
10 months ago
0.0.1-edge.10
9 months ago
0.0.1-edge.8
9 months ago
0.0.1-edge.5
10 months ago
0.0.1-edge.12
8 months ago
0.0.1-edge.6
10 months ago
0.0.1-edge.3
12 months ago
0.0.1-edge.2
12 months ago
0.0.1-edge.1
12 months ago
0.0.1-edge.0
1 year ago
0.0.0
1 year ago