3838000 did_you_mean/lib
16800 ruby-2.2.2/lib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#- correct_word: incorrect_word(user input) | |
# result: | |
# - list_of_candidates | |
--- | |
- absence: absense | |
result: | |
- absences | |
- absents | |
- absence | |
- absentee |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# gem 'did_you_mean', '0.9.7' | |
require 'yaml' | |
require 'set' | |
require 'did_you_mean' | |
class DidYouMean::WordCollection | |
include DidYouMean::BaseFinder | |
def initialize(words) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This data is based on Birkbeck Spelling Error Corpus: http://ota.ox.ac.uk/headers/0643.xml | |
# More specifically, this is a yaml version of the data in FAWTHROP1DAT.643 and FAWTHROP1DAT.643. | |
--- | |
abattoir: abbatoir | |
abhorrence: abhorence | |
absence: absense | |
absorbent: absorbant | |
absorption: absorbtion | |
accede: acceed | |
accelerate: acellerate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rest-client' | |
base_url = "http://simple.wiktionary.org/w/api.php?action=query&aplimit=23294&list=allpages&format=json" | |
filename = "simple_english_titles.yml" | |
count = nil | |
apfrom = nil | |
num = 0 | |
titles = [] | |
begin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ bundle config --global jobs 1 | |
You are replacing the current global value of jobs, which is currently "4" | |
$ gem uni coffee-script-source execjs jbuilder columnize spring debug_inspector tilt sdoc jquery-rails sass coffee-script uglifier sass-rails coffee-rails turbolinks sqlite3 byebug binding_of_caller web-console -aIx | |
$ time rails new bundler-jobs-1 | |
create | |
... | |
create vendor/assets/stylesheets/.keep | |
run bundle install |