Fuzzy Score algorithm implementation
- Used to find the similarity of the strings
- A higher score indicates a higher similarity
- This package mainly converted from org.apache.commons.text.similarity.FuzzyScore
npm install -S fuzzy-score
import fuzzyScore from "fuzzy-score";
fuzzyScore('', '');
// 0
fuzzyScore('Workshop', 'b');
// 0
fuzzyScore('Room', 'o');
// 1
fuzzyScore('Workshop', 'w');
// 1
fuzzyScore('Workshop', 'ws');
// 2
fuzzyScore('Workshop', 'wo');
// 4