Skip to content

The non-command line, non-web app version of Email Predictor.

Notifications You must be signed in to change notification settings

sunwooz/EmailPredictorV1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###Email Predictor

This is a program that will allow the user to predict email addresses of a person in a company given that you have the email of another person in the same company.

###How to use

Instantiate the PatternFinder class with your sample dataset and call #parse_data

dataset = {
  "John Ferguson" => "[email protected]",
  "Damon Aw" => "[email protected]",
  "Linda Li" => "[email protected]",
  "Larry Page" => "[email protected]",
  "Sergey Brin" => "[email protected]",
  "Steve Jobs" => "[email protected]"
}

pf = PatternFinder.new(dataset)
parsed_data = pf.parse_data

Use the parsed_data to instantiate a new EmailPredictor

ep = EmailPredictor.new(parsed_data)

Call #predict_email with the name of the person and and their workplace domain name as arguments.

ep.predict_email("Sunwoo Yang", "google.com") 
#=> ["[email protected]", "[email protected]"]

About

The non-command line, non-web app version of Email Predictor.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published