This repository has been archived on 2026-05-05. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2026-05-02 22:15:25 -05:00

29 lines
955 B
EmacsLisp

// 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())