Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruanyl/similar
compare the similarity of two string
https://github.com/ruanyl/similar
Last synced: 18 days ago
JSON representation
compare the similarity of two string
- Host: GitHub
- URL: https://github.com/ruanyl/similar
- Owner: ruanyl
- License: mit
- Created: 2015-03-12T09:13:05.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-15T19:22:36.000Z (almost 10 years ago)
- Last Synced: 2024-12-11T04:33:27.071Z (29 days ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# similar
compare the similarity of two stringExample:
```javascript
var str1 = 'Continuous Integration Your Hexo Blog With Travis CI';
var str2 = 'Continuous Integration Your Hexo Blog With Travis';
var similar = require('./index.js');
similar(str1, str2); // return 77.77, range 0-100(exactly the same)
```