Perform natural searches on people’s names
Ruby JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.ruby-gemset
.ruby-version
.travis.yml
CHANGELOG
Gemfile
Gemfile.lock
MIT-LICENSE
README.rdoc
Rakefile
name_search.gemspec

README.rdoc

Name Search

Build Status

Perform intelligent searches on people's names.

Name search uses common nick names and first name/last name ordering to perform its searches.

For example, a search for 'Andrew' will return matches on 'Andrew' and 'Andy', while a search for 'Andrew Smith' will return matches on 'Andy Smith' and 'Smith, Andrew'

Installation

Add the gem to the gemfile

gem 'name_search'

Generate the migration file

rails generate name_search:migration

Run the migration

rake db:migrate

Populating Nick Names

A couple of rake tasks are included to pre-populate the database with common nick names.

Nick names from the 1990 census

rake name_search:add_census_nick_names

Other common nick names that are not part of the 1990 census

rake name_search:add_contributed_nick_names