in FamilyNotes/Speech/SpeechManager.cs [657:691]
private CommandVerb GetPhraseIntent(string phrase)
{
CommandVerb verb = CommandVerb.None;
if (phrase.StartsWith("Add") || phrase.StartsWith("Create") || phrase.StartsWith("New"))
{
verb = CommandVerb.Create;
}
else if (phrase.StartsWith("Read"))
{
verb = CommandVerb.Read;
}
else if (phrase.StartsWith("Edit"))
{
verb = CommandVerb.Edit;
}
else if (phrase.StartsWith("Delete"))
{
verb = CommandVerb.Delete;
}
else if (phrase.StartsWith("Help") || phrase.StartsWith("What can I say"))
{
verb = CommandVerb.Help;
}
else if (phrase.StartsWith("Show"))
{
verb = CommandVerb.Show;
}
else
{
Debug.WriteLine("Phrase intent not recognized: {0}", phrase);
}
return verb;
}