{"id":22725211,"url":"https://github.com/oliverschloebe/google-spell-pspell","last_synced_at":"2025-06-10T17:39:08.815Z","repository":{"id":9497104,"uuid":"11389114","full_name":"oliverschloebe/google-spell-pspell","owner":"oliverschloebe","description":"A PHP Pspell substitute for Google Spell Check XML API.","archived":false,"fork":false,"pushed_at":"2024-08-18T15:25:35.000Z","size":29,"stargazers_count":21,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-13T14:09:06.301Z","etag":null,"topics":["google-spell-pspell","php","php-pspell-substitute","pspell","xml-structure"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/oliverschloebe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":["https://www.schloebe.de/donate/"]}},"created_at":"2013-07-13T14:24:01.000Z","updated_at":"2024-09-26T09:29:33.000Z","dependencies_parsed_at":"2022-08-28T21:11:44.992Z","dependency_job_id":null,"html_url":"https://github.com/oliverschloebe/google-spell-pspell","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/oliverschloebe%2Fgoogle-spell-pspell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliverschloebe%2Fgoogle-spell-pspell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliverschloebe%2Fgoogle-spell-pspell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliverschloebe%2Fgoogle-spell-pspell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oliverschloebe","download_url":"https://codeload.github.com/oliverschloebe/google-spell-pspell/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248766746,"owners_count":21158301,"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":["google-spell-pspell","php","php-pspell-substitute","pspell","xml-structure"],"created_at":"2024-12-10T15:10:14.891Z","updated_at":"2025-04-13T19:08:51.743Z","avatar_url":"https://github.com/oliverschloebe.png","language":"PHP","funding_links":["https://www.schloebe.de/donate/"],"categories":[],"sub_categories":[],"readme":"# google-spell-pspell\n\n[![License](https://img.shields.io/packagist/l/oliverschloebe/google-spell-pspell.svg)](https://github.com/oliverschloebe/google-spell-pspell/blob/main/LICENSE)\n[![Latest Stable Version](https://img.shields.io/packagist/v/oliverschloebe/google-spell-pspell.svg)](https://packagist.org/packages/oliverschloebe/google-spell-pspell)\n[![Latest Version](https://img.shields.io/github/release/oliverschloebe/google-spell-pspell.svg?style=flat-square)](https://github.com/oliverschloebe/google-spell-pspell/releases)\n[![Source Code](https://img.shields.io/badge/source-oliverschloebe/google--spell--pspell-blue.svg?style=flat-square)](https://github.com/oliverschloebe/google-spell-pspell)\n\nA PHP Pspell substitute for Google Spell Check XML API. Pspell is required in order to work on your server.\n\n## Why?\n\nGoogle obviously shut down their Spell checking API (www.google.com/tbproxy/spell) on July 9th 2013, see [here](http://productforums.google.com/forum/#!topic/chat/CPb0PYllbE8). This PHP class is a PHP Pspell substitute for Google Spell Check XML API using the same XML structure.\n\n## Usage\n```php\nrequire_once 'spell-check-library.php';\n$content = \"\";\n$options = array(\n\t\"lang\"\t\t\t\t=\u003e 'en',\n\t\"maxSuggestions\"\t\t=\u003e 10,\n\t\"customDict\"\t\t\t=\u003e 0,\n\t\"charset\"\t\t\t=\u003e 'utf-8'\n);\n$factory = new SpellChecker($options);\n\n$spell = $factory-\u003ecreate(trim(\"Ths is a tst\"));\n\nheader('Content-Type: text/xml; charset=UTF-8');\necho $spell-\u003etoXML();\n```\nEchoes Google-style XML like this:\n```xml\n\u003cspellresult error=\"0\" clipped=\"0\" charschecked=\"12\"\u003e\n    \u003cc o=\"0\" l=\"3\" s=\"1\"\u003eThis Th's Thus Th HS\u003c/c\u003e\n    \u003cc o=\"9\" l=\"3\" s=\"1\"\u003etest tat ST St st\u003c/c\u003e\n\u003c/spellresult\u003e\n```\n\n... which you can use with your existing spell checking script such as GoogieSpell that was expecting XML structured data back from Google.\n\n## Bugs/Suggestions\n\nIf you find a bug, or would like to contribute to the project please use the [Issue Tracker](https://github.com/AlphawolfWMP/google-spell-pspell/issues) over at my GitHub project page.\n\n## Credits\n\nMad props to [Sabin Iacob (m0n5t3r)](http://m0n5t3r.info). Code basically from [here](http://plugins.svn.wordpress.org/ajax-spell-checker/trunk/service/spell-check-library.php), but I removed the Aspell and Google API parts and made it standalone-ready.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliverschloebe%2Fgoogle-spell-pspell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foliverschloebe%2Fgoogle-spell-pspell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliverschloebe%2Fgoogle-spell-pspell/lists"}