{"id":15645014,"url":"https://github.com/pat/thinking-sphinx-raspell","last_synced_at":"2025-10-04T18:44:15.137Z","repository":{"id":682084,"uuid":"325911","full_name":"pat/thinking-sphinx-raspell","owner":"pat","description":"An add-on gem for spelling suggestions in Thinking Sphinx","archived":false,"fork":false,"pushed_at":"2020-03-03T01:55:55.000Z","size":25,"stargazers_count":58,"open_issues_count":0,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T15:47:13.630Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://pat.github.io/thinking-sphinx","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":"2009-10-03T23:43:47.000Z","updated_at":"2022-12-20T14:03:43.000Z","dependencies_parsed_at":"2022-08-02T18:01:06.593Z","dependency_job_id":null,"html_url":"https://github.com/pat/thinking-sphinx-raspell","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%2Fthinking-sphinx-raspell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pat%2Fthinking-sphinx-raspell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pat%2Fthinking-sphinx-raspell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pat%2Fthinking-sphinx-raspell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pat","download_url":"https://codeload.github.com/pat/thinking-sphinx-raspell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251691678,"owners_count":21628369,"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-03T12:04:00.229Z","updated_at":"2025-10-04T18:44:10.075Z","avatar_url":"https://github.com/pat.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"*Please Note*: This project is no longer supported. It only works with Thinking Sphinx v1/v2, whereas the v3+ releases are what has been actively supported since 2012. Patches are welcome to rewrite this for v3 support if anyone's feeling particularly keen to modernise this gem.\n\nh1. Thinking Sphinx with Raspell\n\nThis library adds Aspell/Raspell support to \"Thinking Sphinx\":http://pat.github.io/thinking-sphinx\n\nh2. Installation\n\nYou'll need \"the Aspell library\":http://www.aspell.net (easily compiled by source, or installed via Homebrew or MacPorts). Don't forget to install the English library as well - there's instructions for both in Evan Weaver's \"Raspell README\":http://github.com/evan/raspell.\n\nOnce that's set up, grab the gem:\n\n\u003cpre\u003e\u003ccode\u003egem install thinking-sphinx-raspell\u003c/code\u003e\u003c/pre\u003e\n\nYou'll want to add the gem to your @Gemfile@:\n\n\u003cpre\u003e\u003ccode\u003egem 'thinking-sphinx-raspell', '1.1.2',\n  :require =\u003e 'thinking_sphinx/raspell'\u003c/code\u003e\u003c/pre\u003e\n\nOr, if using older versions of Rails, your @config/environment.rb@ file:\n\n\u003cpre\u003e\u003ccode\u003econfig.gem 'thinking-sphinx-raspell',\n  :lib     =\u003e 'thinking_sphinx/raspell',\n  :version =\u003e '\u003e= 1.1.2'\u003c/code\u003e\u003c/pre\u003e\n\nOr, if you wish to do a manual require yourself:\n\n\u003cpre\u003e\u003ccode\u003erequire 'thinking_sphinx/raspell'\u003c/code\u003e\u003c/pre\u003e\n\nh2. Usage\n\nBy default, Thinking Sphinx will not overwrite your search query, but you can view suggestions:\n\n\u003cpre\u003e\u003ccode\u003e@articles = Article.search 'pnacakes'\n@articles.suggestion? #=\u003e true\n@articles.suggestion  #=\u003e 'pancakes'\u003c/code\u003e\u003c/pre\u003e\n\nYou can also choose to redo the search using the provided suggestion:\n\n\u003cpre\u003e\u003ccode\u003e@articles.redo_with_suggestion\n@articles.each do |article|\n  # ...\nend\u003c/code\u003e\u003c/pre\u003e\n\nh2. Configuration\n\nYou can customise the following settings - either in your @config/environment.rb@ file, or perhaps in an initializer. Example syntax below highlights the current defaults.\n\n\u003cpre\u003e\u003ccode\u003econfig = ThinkingSphinx::Configuration.instance\nconfig.raspell.dictionary             = 'en'\nconfig.raspell.suggestion_mode        = :normal\nconfig.raspell.options['ignore-case'] = true\u003c/code\u003e\u003c/pre\u003e\n\nYou can look at the available options using the following two collections:\n\n\u003cpre\u003e\u003ccode\u003econfig = ThinkingSphinx::Configuration.instance\nconfig.raspell.dictionaries     #=\u003e ['en', 'en_GB', 'en_US', ... ]\nconfig.raspell.suggestion_modes #=\u003e [:ultra, :fast, :normal, :badspellers]\u003c/code\u003e\u003c/pre\u003e\n\nIf you require more control over the Aspell options you can also pass in your own instance:\n\n\u003cpre\u003e\u003ccode\u003econfig = ThinkingSphinx::Configuration.instance\nconfig.raspell.speller = Aspell.new('en_GB')\u003c/code\u003e\u003c/pre\u003e\n\nIf you need more documentation, you can check out the YARD files \"on rdoc.info\":http://rdoc.info/projects/freelancing-god/thinking-sphinx-raspell.  This isn't a big library, though - what you see in this readme is pretty much what you get.\n\nh2. Limitations\n\n* Only checks normal query strings, not field-specific queries via the @:conditions@ hash.\n\nPatches are very much welcome - I would like to address this last remaining limitation.\n\nh2. Copyright\n\nCopyright (c) 2009-2011 \"Pat Allan\":http://freelancing-gods.com. Released under an MIT licence.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpat%2Fthinking-sphinx-raspell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpat%2Fthinking-sphinx-raspell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpat%2Fthinking-sphinx-raspell/lists"}