Say I have a long document, and I have some keywords that I wish to determine the relevance. For example, say I have the document
Lorem ipsum dolor sit amet.
And the keywords, ipsum
and amet
. How can I test whether they are in the document, but allow spelling mistakes in the document. For example,
Loremm ipsum dolor sit ammet.
I'm more looking for information about what this is called, or even better, a JS module.