{"id":13484273,"url":"https://github.com/threedaymonk/text","last_synced_at":"2025-03-27T16:30:38.752Z","repository":{"id":690093,"uuid":"334238","full_name":"threedaymonk/text","owner":"threedaymonk","description":"Collection of text algorithms. gem install text","archived":false,"fork":false,"pushed_at":"2015-04-13T14:55:29.000Z","size":515,"stargazers_count":584,"open_issues_count":1,"forks_count":42,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-02-05T21:51:30.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jnicklas/uploadcolumn","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/threedaymonk.png","metadata":{"files":{"readme":"README.rdoc","changelog":null,"contributing":null,"funding":null,"license":"COPYING.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-10-11T21:30:45.000Z","updated_at":"2025-01-23T23:52:59.000Z","dependencies_parsed_at":"2022-07-05T09:39:28.926Z","dependency_job_id":null,"html_url":"https://github.com/threedaymonk/text","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threedaymonk%2Ftext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threedaymonk%2Ftext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threedaymonk%2Ftext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threedaymonk%2Ftext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/threedaymonk","download_url":"https://codeload.github.com/threedaymonk/text/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238887450,"owners_count":19547255,"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-07-31T17:01:21.675Z","updated_at":"2025-03-27T16:30:38.723Z","avatar_url":"https://github.com/threedaymonk.png","language":"Ruby","funding_links":[],"categories":["Natural Language Processing","Ruby"],"sub_categories":[],"readme":"= Text\n\nA collection of text algorithms.\n\n== Usage\n\n  require 'text'\n\n=== Levenshtein distance\n\n  Text::Levenshtein.distance('test', 'test')\n  # =\u003e 0\n  Text::Levenshtein.distance('test', 'tent')\n  # =\u003e 1\n  Text::Levenshtein.distance('test', 'testing')\n  # =\u003e 3\n  Text::Levenshtein.distance('test', 'testing', 2)\n  # =\u003e 2\n\n=== Metaphone\n\n  Text::Metaphone.metaphone('BRIAN')\n  # =\u003e 'BRN'\n\n  Text::Metaphone.double_metaphone('Coburn')\n  # =\u003e ['KPRN', nil]\n  Text::Metaphone.double_metaphone('Angier')\n  # =\u003e ['ANJ', 'ANJR']\n\n=== Soundex\n\n  Text::Soundex.soundex('Knuth')\n  # =\u003e 'K530'\n\n=== Porter stemming\n\n  Text::PorterStemming.stem('abatements')  # =\u003e 'abat'\n\n=== White similarity\n\n  white = Text::WhiteSimilarity.new\n  white.similarity('Healed', 'Sealed')   # 0.8\n  white.similarity('Healed', 'Help')     # 0.25\n\nNote that some intermediate information is cached on the instance to improve\nperformance.\n\n== Ruby version compatibility\n\nThe library has been tested on Ruby 1.8.6 to 1.9.3 and on JRuby.\n\n== Thanks\n\n* Hampton Catlin (hcatlin) for Ruby 1.9 compatibility work\n* Wilker Lúcio for the initial implementation of the White algorithm\n\n== License\n\nMIT. See COPYING.txt for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreedaymonk%2Ftext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthreedaymonk%2Ftext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreedaymonk%2Ftext/lists"}