Skip to content

antononcube/Raku-DSL-English-FoodPreparationWorkflows

Repository files navigation

Food Preparation Workflows

In brief

This Raku Perl 6 package has grammar classes and action classes for the parsing and interpretation of spoken commands that specify Food Preparation (FP) workflows.

It is envisioned that the interpreters (actions) are going to target different programming languages: R, Mathematica, Python, etc.

This project is closely related to the project SousChefSusana.

This diagram shows the conversational agent components this grammar addresses:

SousChefSusanaComponents

Installation

1. Install Raku (Perl 6) : https://raku.org/downloads .

2. Make sure you have Zef Module Installer.

3. Open a command line program. (E.g. Terminal on Mac OS X.)

4. Run the commands:

zef install https://github.com/antononcube/Raku-DSL-Shared.git
zef install https://github.com/antononcube/Raku-DSL-Entity-English-Foods.git
zef install https://github.com/antononcube/Raku-DSL-Entity-English-Geographics.git
zef install https://github.com/antononcube/Raku-DSL-English-FoodPreparationWorkflows.git

Examples

Open a Raku IDE or type raku in the command line program. Try this Raku code:

use DSL::English::FoodPreparationWorkflows;

say ToFoodPreparationWorkflowCode(
    "what dish can i cook in the next two hours?
     why did you recommend that?",
    "WL-FoodPrepMon");

Here is a more complicated, statistics pipeline specification:

say ToFoodPreparationWorkflowCode(
    "how many people ate dishes with feta last month;
     what is the breakdown of calories over food groups;
     where carbs are consumed the most;
     plot the results;", "WL-FoodPredMon")

Here is a recommendations (by collaborative filtering) specification:

say ToFoodPreparationWorkflowCode(
    "what people like me ate last week;
     which of those I can cook tonight;
     show me the ingredients and tools;", "WL-FoodPredMon")

The command above should print out WL code for the WL package ..., [AA1]:

TBD...

References

[AAr1] Anton Antonov, DSL::Shared Raku package, (2020), GitHub/antononcube.

[AAr2] Anton Antonov, DSL::Entity::English::Foods Raku package, (2021), GitHub/antononcube.

[AAr3] Anton Antonov, DSL::Entity::English::Geographics Raku package, (2021), GitHub/antononcube.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages