{"id":18451576,"url":"https://github.com/ncrocfer/similar","last_synced_at":"2025-07-11T20:36:23.756Z","repository":{"id":32459443,"uuid":"36039075","full_name":"ncrocfer/similar","owner":"ncrocfer","description":"A similar text finder written in Python","archived":false,"fork":false,"pushed_at":"2015-06-01T21:59:14.000Z","size":148,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-29T20:57:09.648Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":"Unmaintained","scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ncrocfer.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-21T21:50:35.000Z","updated_at":"2024-04-28T11:05:42.000Z","dependencies_parsed_at":"2022-08-24T12:50:12.220Z","dependency_job_id":null,"html_url":"https://github.com/ncrocfer/similar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncrocfer%2Fsimilar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncrocfer%2Fsimilar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncrocfer%2Fsimilar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncrocfer%2Fsimilar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ncrocfer","download_url":"https://codeload.github.com/ncrocfer/similar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223300161,"owners_count":17122525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T07:29:08.745Z","updated_at":"2024-11-06T07:29:09.354Z","avatar_url":"https://github.com/ncrocfer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"similar - A similar text finder written in Python \n=================================================\n\n.. image:: https://travis-ci.org/ncrocfer/similar.svg?branch=master\n    :target: https://travis-ci.org/ncrocfer/similar\n\n\n:code:`similar` is a Python library used to find the correct spelling from a misspelled text.\n\nUsage\n-----\n\n.. code-block:: python\n\n    \u003e\u003e\u003e from similar import best_match\n    \u003e\u003e\u003e best_match('rasbery', ['apple', 'raspberry', 'pear'])\n    raspberry\n\n\nInstallation\n------------\n\nThe tool works with Python 2 and Python 3. It can be installed with `Pip` :\n\n::\n\n    pip install similar\n\n\nNotes\n-----\n\nYou can also use a file object for the wordlist :\n\n.. code-block:: python\n\n    from similar import Similar\n\n    s = Similar('rasbery', open('wordlist.txt'))\n    print(s.best())\n\n\nOr a generator :\n\n.. code-block:: python\n\n    from similar import Similar\n\n    def genwords():\n        for line in ['apple', 'raspberry', 'pear']:\n            yield line\n\n    s = Similar('rasbery', genwords())\n    print(s.best())","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncrocfer%2Fsimilar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fncrocfer%2Fsimilar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncrocfer%2Fsimilar/lists"}