Add new fuzzy quote matching implementation
Implement a `matchQuote` function which will be used to replace `dom-anchor-text-quote` for finding the best match for annotation quotes in the document text. The new implementation is based on the `approx-string-match` library and provides several improvements over the existing one: - Better performance when there are many differences between the quote and closest document text - It will be easier for us to tune the degree of mismatch allowed between the quote and document text and how candidate matches are ranked
Showing
... | @@ -12,6 +12,7 @@ | ... | @@ -12,6 +12,7 @@ |
"@babel/preset-react": "^7.0.0", | "@babel/preset-react": "^7.0.0", | ||
"@octokit/rest": "^18.0.0", | "@octokit/rest": "^18.0.0", | ||
"@sentry/browser": "^5.6.2", | "@sentry/browser": "^5.6.2", | ||
"approx-string-match": "^1.1.0", | |||
"autoprefixer": "^10.0.1", | "autoprefixer": "^10.0.1", | ||
"aws-sdk": "^2.345.0", | "aws-sdk": "^2.345.0", | ||
"axe-core": "^4.0.0", | "axe-core": "^4.0.0", | ||
... | ... |
Please register or sign in to comment