AGFL
1 program
Added 2026-03-12T10:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: Affix Grammar over Finite Lattices
Provenance: commit 52d1f079de · authored 2026-03-12T10:21:01+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Simple English Grammar with Number Agreement
Provenance: commit 52d1f079de · authored 2026-03-12T10:21:01+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
% Simple English grammar in AGFL (Affix Grammar over Finite Lattices)
% Demonstrates number agreement between subject and verb
gram english;
affixes
num = {sg, pl};
rules
sentence -> np(num) vp(num).
np(num) -> det(num) noun(num).
np(sg) -> propernoun.
vp(num) -> verb(num).
vp(num) -> verb(num) np(_).
vp(num) -> verb(num) pp.
pp -> prep np(_).
codetable
det(sg) = "a" / "the".
det(pl) = "the".
noun(sg) = "dog" / "cat" / "student" / "teacher".
noun(pl) = "dogs" / "cats" / "students" / "teachers".
propernoun = "Alice" / "Bob" / "Carol".
verb(sg) = "sees" / "chases" / "helps" / "likes".
verb(pl) = "see" / "chase" / "help" / "like".
prep = "with" / "near" / "beside".