calculate similar between strings, support chinese.
npm i str-similar --save
import { StrSimilar } from 'str-similar';
const similarity = new StrSimilar().similarity('哈哈', '嘿嘿');
npm i str-similar -g
str-similar compare str1 str2
yhn@yhnMBP % str-similar compare 太和 大和
similarity 0.92885
yhn@yhnMBP % str-similar compare 啥 哈
similarity 0.92448
yhn@yhnMBP % str-similar compare 你 我
similarity 0.52308