if ([UIReferenceLibraryViewController dictionaryHasDefinitionForTerm:word.text]) {
UIReferenceLibraryViewController* ref =
[[UIReferenceLibraryViewController alloc] initWithTerm:word.text];
[self presentViewController:ref animated:YES completion:nil];
}else{
NSLog(@"No definition found");
}