Rename: nlg → elp (Engram Language Protocol)

This commit is contained in:
Will Anderson
2026-05-02 22:15:25 -05:00
parent 4945e8e8c5
commit c4e173fa2a
125 changed files with 129214 additions and 780 deletions
+28
View File
@@ -0,0 +1,28 @@
// lang-es.el - Spanish NLG tests: assertion, question, description.
//
// Tests SVO word order, fusional Spanish morphology, and intonation
// question strategy (no auxiliary inversion in Spanish).
//
// Expected outputs (approximate depends on morph tables loaded):
// assert: "El gato come el pescado."
// question: "El gato come el pescado?" (intonation statement order + ?)
// description: "El gato es grande."
fn test_assert() -> String {
let frame: [String] = sem_frame_lang("assert", "el gato", "comer", "", "es")
return sem_realize(frame)
}
fn test_question() -> String {
let frame: [String] = sem_frame_lang("query", "el gato", "comer", "", "es")
return sem_realize(frame)
}
fn test_description() -> String {
let frame: [String] = sem_frame_lang("describe", "el gato", "grande", "", "es")
return sem_realize(frame)
}
println(test_assert())
println(test_question())
println(test_description())