@openpromises/quotes
v0.16.0
Published
Exact-quote matching for OpenPromises: normalisation per language, exact / close / none tiers, spans in stored text
Maintainers
Readme
@openpromises/quotes
Exact-quote matching for OpenPromises: normalisation per language (Russian ё/е, quotation marks, dashes, spaces), the tiers exact / close / none, and character-for-character spans in stored source texts. No dependencies.
import { matchQuote } from "@openpromises/quotes";
matchQuote("Мы проиндексируем всё", "«Мы проиндексируем все»", { lang: "ru" }).tier; // "exact"Licence: Apache-2.0.
