Chef: Heuristic for verb past tense conversion

Add a heuristic method for converting verb to past tense by appending d/ed to end of the present tense form.
This commit is contained in:
Seggan
2024-03-28 13:22:46 -04:00
committed by GitHub
parent 78996f849d
commit 12a318dcbd
5 changed files with 22 additions and 21 deletions

View File

@@ -355,14 +355,14 @@ describe("Parsing method instructions", () => {
});
test("`Verb` [the `ingredient`] until `verbed`", () => {
testMethodOp("Destroy until bake", {
testMethodOp("Destroy until baked", {
code: "LOOP-CLOSE",
verb: "bake",
verb: "baked",
opener: JumpAddressPlaceholder,
});
testMethodOp("Destroy the tomato ketchup until bake", {
testMethodOp("Destroy the tomato ketchup until baked", {
code: "LOOP-CLOSE",
verb: "bake",
verb: "baked",
ing: "tomato ketchup",
opener: JumpAddressPlaceholder,
});