{"id":25470134,"url":"https://github.com/thinkphp/google-spell-check","last_synced_at":"2025-11-04T18:30:29.606Z","repository":{"id":66903041,"uuid":"986616","full_name":"thinkphp/google-spell-check","owner":"thinkphp","description":"Plugin MooTools which allows you to provide spell checking for text. It uses Google API to check if the text is correct and to get some suggestions. This is done by PHP that uses cURL to get some xml and translates it to JSON, so we can use Request.JSON for out client-side. ","archived":false,"fork":false,"pushed_at":"2010-10-14T10:42:13.000Z","size":92,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T14:54:26.927Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://thinkphp.ro/apps/google/google-spell-check/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thinkphp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-10-14T10:32:15.000Z","updated_at":"2021-12-22T16:31:14.000Z","dependencies_parsed_at":"2023-02-20T14:00:21.140Z","dependency_job_id":null,"html_url":"https://github.com/thinkphp/google-spell-check","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/thinkphp%2Fgoogle-spell-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2Fgoogle-spell-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2Fgoogle-spell-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2Fgoogle-spell-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkphp","download_url":"https://codeload.github.com/thinkphp/google-spell-check/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239437204,"owners_count":19638447,"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":"2025-02-18T08:32:07.384Z","updated_at":"2025-11-04T18:30:29.555Z","avatar_url":"https://github.com/thinkphp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Request.SpellCheck\n==================\n\nThis class allows you to provide spell checking for text. It uses Google API to check if the text is correct and \nto get some suggestions. This is done by PHP that uses cURL to get some xml and translates it to JSON, so we can\nuse Request.JSON for out client-side. That is where Request.SpellCheck is build on. Request.SpellCheck will give\nyou an array in the onSuccess event that you can use.\n\n\n![Screenshot](http://farm5.static.flickr.com/4111/5070795173_f0f818dea9_z.jpg)\n\nHow to use\n----------\n\nFirst you must to include the JS files in the head of your HTML document.\n\n            #HTML\n            \u003cscript type=\"text/javascript\" src=\"mootools.js\"\u003e\u003c/script\u003e\n            \u003cscript type=\"text/javascript\" src=\"spellcheck.js\"\u003e\u003c/script\u003e\n\nIn your JS.\n          \n           #JS\n           window.addEvent('domready',function(){\n                  var spell = new Request.SpellCheck({ \n                               url: 'spellcheck.php',\n                               onSuccess: function(suggestions, data, response, text) {\n                                       var text = text;\n                                       $each(suggestions,function(suggest){\n                                             var word = suggest.text;\n                                             text = text.replace(word,'\u003cspan class=\"invalid\"\u003e'+word+'\u003c/span\u003e\u003cb\u003e ('+suggest.suggestions.join(',')+')\u003c/b\u003e'); \n                                       });\n                                       $('spellzone').set('html',text);\n                               }\n                  });\n\n                  var val = document.id('input_text'); \n                  $('spell').addEvent('click',function(){\n                       if(val){\n                           spell.spellcheck(val.get('value'));\n                       }\n                  })\n           }); \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkphp%2Fgoogle-spell-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkphp%2Fgoogle-spell-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkphp%2Fgoogle-spell-check/lists"}