NLP::LanguageGeneration::Sentence
Inherits Struct < Value < Object
Simple sentence structure for generation
Constructors
new(subject : String | Nil = nil, verb : String | Nil = nil, object : String | Nil = nil, modifiers : Array(String) = [] of String, tense : Tense = Tense::PRESENT)
Instance methods
modifiers
object
subject
tense
to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.
verb