protected ToDoLU GetToDoIntent(
            string userInput            = null,
            ToDoLU.Intent intents       = ToDoLU.Intent.None,
            double[] ordinal            = null,
            double[] number             = null,
            string[] containsAll        = null,
            string[] listType           = null,
            string[] taskContentML      = null,
            string[] shopContent        = null,
            string[] taskContentPattern = null,
            string[][] foodOfGrocery    = null,
            string[][] shopVerb         = null)
        {
            var intent = new ToDoLU();

            intent.Text    = userInput;
            intent.Intents = new Dictionary <ToDoLU.Intent, IntentScore>();
            intent.Intents.Add(intents, new IntentScore()
            {
                Score = TopIntentScore
            });
            intent.Entities                    = new ToDoLU._Entities();
            intent.Entities._instance          = new ToDoLU._Entities._Instance();
            intent.Entities.ordinal            = ordinal;
            intent.Entities.number             = number;
            intent.Entities.ContainsAll        = containsAll;
            intent.Entities.ListType           = listType;
            intent.Entities.TaskContentML      = taskContentML;
            intent.Entities.ShopContent        = shopContent;
            intent.Entities.TaskContentPattern = taskContentPattern;
            intent.Entities.FoodOfGrocery      = foodOfGrocery;
            intent.Entities.ShopVerb           = shopVerb;

            return(intent);
        }
 private ToDoLU GetBaseShowTasksIntent(
     string userInput,
     ToDoLU.Intent intents = ToDoLU.Intent.ShowToDo,
     string[] listType     = null)
 {
     return(GetToDoIntent(
                userInput,
                intents,
                listType: listType));
 }
 private ToDoLU GetBaseDeleteToDoIntent(
     string userInput,
     ToDoLU.Intent intents       = ToDoLU.Intent.DeleteToDo,
     double[] ordinal            = null,
     double[] number             = null,
     string[] listType           = null,
     string[] containsAll        = null,
     string[] taskContentPattern = null,
     string[] taskContentML      = null)
 {
     return(GetToDoIntent(
                userInput,
                intents,
                ordinal: ordinal,
                number: number,
                listType: listType,
                containsAll: containsAll,
                taskContentPattern: taskContentPattern,
                taskContentML: taskContentML));
 }
 private ToDoLU GetBaseAddTaskIntent(
     string userInput,
     ToDoLU.Intent intents       = ToDoLU.Intent.AddToDo,
     string[] listType           = null,
     string[] taskContentML      = null,
     string[] shopContent        = null,
     string[] taskContentPattern = null,
     string[][] foodOfGrocery    = null,
     string[][] shopVerb         = null)
 {
     return(GetToDoIntent(
                userInput,
                intents,
                listType: listType,
                taskContentML: taskContentML,
                shopContent: shopContent,
                taskContentPattern: taskContentPattern,
                foodOfGrocery: foodOfGrocery,
                shopVerb: shopVerb));
 }