Archived
Rename: nlg → elp (Engram Language Protocol)
This commit is contained in:
@@ -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())
|
||||
Reference in New Issue
Block a user