Find similar text easily
Project description
similar
A dependency less python library made for finding similar text inspired from similar
Usage
import similar
match = similar.best_match("apply", ["pickle", "apple", "orange"])
print(match)
> apple
Extras
Also works with
file -
import similar
match = similar.best_match("apply", open("words.txt", "r"))
print(match)
> apple
or generator object
import similar
def genwords():
for word in ["picke", "apple", "orange"]:
yield word
match = similar.best_match("apply", genwords())
print(match)
> apple
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
similar.py-1.0.tar.gz
(2.0 kB
view hashes)