mrWh1te / Botmation

A simple TypeScript framework for declaratively composing bots with Puppeteer
https://botmation.dev
MIT License
18 stars 2 forks source link

Fuzzy String Matching - nGram #62

Open mrWh1te opened 4 years ago

mrWh1te commented 4 years ago

https://www.npmjs.com/package/trigram-utils asDictionary() to compare matching "grams" with counts to calculate fuzzy difference

Update linkedin postIsAuthoredByAPerson() with fuzzy searching & update with higher-order param to adjust required precision for a "match"

Helpers/fuzzy_strings.ts ?

mrWh1te commented 4 years ago

don't forget to buffer the strings with spaces (1 before and 1 after to increase matching potential slightly, since this is a few words instead of a sentence(s)) to slightly increase matches of matching strings