Skip to main content

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

This version

1.0

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)

Uploaded Source

Built Distribution

similar.py-1.0-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page