Archived
29 lines
955 B
EmacsLisp
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())
|