use super::Sentence;
use nar_dev_utils::join;
use narsese::lexical::Sentence as LexicalSentence;
pub trait Question: Sentence {
fn question_to_key(&self) -> String {
join! {
=> self.content().to_string()
=> self.punctuation().to_string()
}
}
fn question_to_display(&self) -> String {
join! {
=> self.content().to_string()
=> self.punctuation().to_string()
=> self.stamp_to_display()
}
}
fn question_to_lexical(&self) -> LexicalSentence {
LexicalSentence {
term: self.content().into(),
punctuation: self.punctuation().to_char().into(),
stamp: self.stamp_to_lexical(),
truth: vec![],
}
}
}