{"id":15675117,"url":"https://github.com/pat/pedantic","last_synced_at":"2025-05-06T23:42:39.093Z","repository":{"id":66006517,"uuid":"507684","full_name":"pat/pedantic","owner":"pat","description":"Pares text down to the words that matter","archived":false,"fork":false,"pushed_at":"2010-03-18T08:57:16.000Z","size":100,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T04:05:25.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pat.png","metadata":{"files":{"readme":"README.textile","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-02-08T11:51:13.000Z","updated_at":"2019-08-13T14:31:09.000Z","dependencies_parsed_at":"2023-02-19T21:05:15.894Z","dependency_job_id":null,"html_url":"https://github.com/pat/pedantic","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/pat%2Fpedantic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pat%2Fpedantic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pat%2Fpedantic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pat%2Fpedantic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pat","download_url":"https://codeload.github.com/pat/pedantic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252788387,"owners_count":21804280,"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-10-03T15:56:56.576Z","updated_at":"2025-05-06T23:42:39.075Z","avatar_url":"https://github.com/pat.png","language":"Ruby","readme":"h1. Pedantic\n\nPedantic cleans strings of text - stripping out unimportant words and URLs, fixing typos, replacing symbols (like emoticons) with real words, and running the results through a stemmer.\n\nIn short - it gives you reliable text to process (but not read).\n\nAnd if the name didn't give it away, yes this library is opinionated.\n\nh2. Installation\n\nGrab the gem.\n\n\u003cpre\u003e\u003ccode\u003egem install pedantic\u003c/code\u003e\u003c/pre\u003e\n\nh2. Usage\n\n\u003cpre\u003e\u003ccode\u003ePedantic.fix('my messy string ;)') #=\u003e 'messi string joke'\u003c/code\u003e\u003c/pre\u003e\n\nNote that the stemmer generates imperfect words, but it is reasonably reliable and constant in the output, so you can work with those assumptions in the output.\n\nAlso - this library is a work in progress - currently I've aimed for a relatively useful but extremely basic implementation. If you look through the code, you'll see there's few typos and emoticons handled. It's easy enough to extend, though - so please, fork, patch and send a pull request.\n\nh2. Contributing\n\nFork and patch as you see fit - and please send me a pull request if you think it's useful for others. Don't forget to write specs first, and don't mess with the version numbers please (or at least: only do so in a different branch).\n\nh2. Copyright\n\nCopyright (c) 2010 \"Pat Allan\":http://freelancing-gods.com, but released under an open licence. Go for your life.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpat%2Fpedantic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpat%2Fpedantic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpat%2Fpedantic/lists"}