###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]"]