Versions in this module Expand all Collapse all v0 v0.24.5 May 15, 2024 Changes in this version + const Actors + const CheckIndefiniteArticles + const Compass + const CountedTrait + const DirectionOpposite + const Directions + const DoorDestination + const Doors + const ExcludeNounMatching + const FactDirection + const IndefiniteArticle + const LogMatches + const MatchKindsOfAspects + const MatchKindsOfKinds + const Objects + const PlainNameMatching + const PlayerSelf + const PluralNamedTrait + const PrintedName + const Private + const ProperNameTrait + const ReversedTrait + const Rooms + const Scenery + const Things + const VerbAlternate + const VerbImplies + const VerbObject + const VerbRelation + const VerbReversed + const VerbSubject + const Verbs + const Whereabouts + var Z_Types = typeinfo.TypeSet + var Zt_AdditionalAdjectives typeinfo.Flow + var Zt_AdditionalDirections typeinfo.Flow + var Zt_AdditionalKinds typeinfo.Flow + var Zt_AdditionalLinks typeinfo.Flow + var Zt_AdditionalNames typeinfo.Flow + var Zt_AdditionalText typeinfo.Flow + var Zt_AdditionalTraits typeinfo.Flow + var Zt_Adjectives typeinfo.Flow + var Zt_Are typeinfo.Flow + var Zt_Article typeinfo.Flow + var Zt_AspectsAreTraits typeinfo.Flow + var Zt_Called typeinfo.Flow + var Zt_CalledName typeinfo.Flow + var Zt_CommaAnd typeinfo.Flow + var Zt_CommaAndOr typeinfo.Flow + var Zt_CountedKind typeinfo.Flow + var Zt_Direction typeinfo.Flow + var Zt_DirectionOfLinking typeinfo.Flow + var Zt_Kind typeinfo.Flow + var Zt_KindCalled typeinfo.Flow + var Zt_Kinds typeinfo.Flow + var Zt_KindsAreEither typeinfo.Flow + var Zt_KindsAreTraits typeinfo.Flow + var Zt_KindsHaveProperties typeinfo.Flow + var Zt_KindsOf typeinfo.Flow + var Zt_Linking typeinfo.Flow + var Zt_MapConnections typeinfo.Flow + var Zt_MapDirections typeinfo.Flow + var Zt_MapLocations typeinfo.Flow + var Zt_Matched = typeinfo.Slot + var Zt_MatchingNumber typeinfo.Flow + var Zt_MatchingPhrases typeinfo.Flow + var Zt_Name typeinfo.Flow + var Zt_NamedNoun typeinfo.Flow + var Zt_Names typeinfo.Flow + var Zt_NamesAreLikeVerbs typeinfo.Flow + var Zt_NamesVerbNames typeinfo.Flow + var Zt_NewTrait typeinfo.Flow + var Zt_Noun typeinfo.Flow + var Zt_NounBuilder = typeinfo.Slot + var Zt_NounPropertyValue typeinfo.Flow + var Zt_Property typeinfo.Flow + var Zt_PropertyNounValue typeinfo.Flow + var Zt_PropertyType typeinfo.Flow + var Zt_QuotedText typeinfo.Flow + var Zt_QuotedTexts typeinfo.Flow + var Zt_RuleName typeinfo.Flow + var Zt_RulePrefix typeinfo.Flow + var Zt_RuleSuffix typeinfo.Flow + var Zt_RuleTarget typeinfo.Flow + var Zt_SingleValue typeinfo.Flow + var Zt_SubAssignment typeinfo.Flow + var Zt_TimedRule typeinfo.Flow + var Zt_Trait typeinfo.Flow + var Zt_Traits typeinfo.Flow + var Zt_Understand typeinfo.Flow + var Zt_Verb typeinfo.Flow + var Zt_VerbNamesAreNames typeinfo.Flow + var Zt_VerbPhrase typeinfo.Flow + var Zt_Words typeinfo.Flow + func AddKindTraits(w weaver.Weaves, kind string, traits Traitor) (err error) + func BuildPhrase(phrase string) (ret grammar.ScannerMaker, err error) + func ConvertTextTemplate(str string) (ret rt.TextEval, err error) + func GetRuleName(op *RuleName) (ret string, err error) + func GetRulePrefix(op RulePrefix) rules.Prefix + func GetRuleSuffix(op *RuleSuffix) (ret rules.Suffix) + func Optional[M any, IM interface{ ... }](q Query, input *InputState, out **M) (okay bool) + func ReduceTraits(it Traitor) (ret []string) + func WordsToNum(s string) (ret int, okay bool) + type ActualKind struct + BaseKind kindsOf.Kinds + Name string + type ActualNoun struct + Kind string + Name string + type AdditionalAdjectives struct + Adjectives Adjectives + CommaAnd CommaAnd + Markup map[string]any + func (*AdditionalAdjectives) TypeInfo() typeinfo.T + func (op *AdditionalAdjectives) GetMarkup(ensure bool) map[string]any + func (op *AdditionalAdjectives) Match(q Query, input *InputState) (okay bool) + type AdditionalAdjectives_Slice []AdditionalAdjectives + func (*AdditionalAdjectives_Slice) TypeInfo() typeinfo.T + func (op *AdditionalAdjectives_Slice) Repeats() bool + type AdditionalDirections struct + AdditionalDirections *AdditionalDirections + CommaAnd CommaAnd + DirectionOfLinking DirectionOfLinking + Markup map[string]any + func (*AdditionalDirections) TypeInfo() typeinfo.T + func (op *AdditionalDirections) GetMarkup(ensure bool) map[string]any + func (op *AdditionalDirections) Match(q Query, input *InputState) (okay bool) + type AdditionalDirections_Slice []AdditionalDirections + func (*AdditionalDirections_Slice) TypeInfo() typeinfo.T + func (op *AdditionalDirections_Slice) Repeats() bool + type AdditionalKinds struct + CommaAnd CommaAnd + Kinds Kinds + Markup map[string]any + func (*AdditionalKinds) TypeInfo() typeinfo.T + func (op *AdditionalKinds) GetMarkup(ensure bool) map[string]any + func (op *AdditionalKinds) Match(q Query, input *InputState) (okay bool) + type AdditionalKinds_Slice []AdditionalKinds + func (*AdditionalKinds_Slice) TypeInfo() typeinfo.T + func (op *AdditionalKinds_Slice) Repeats() bool + type AdditionalLinks struct + AdditionalLinks *AdditionalLinks + CommaAnd CommaAnd + Linking Linking + Markup map[string]any + func (*AdditionalLinks) TypeInfo() typeinfo.T + func (op *AdditionalLinks) GetMarkup(ensure bool) map[string]any + func (op *AdditionalLinks) Match(q Query, input *InputState) (okay bool) + type AdditionalLinks_Slice []AdditionalLinks + func (*AdditionalLinks_Slice) TypeInfo() typeinfo.T + func (op *AdditionalLinks_Slice) Repeats() bool + type AdditionalNames struct + CommaAnd CommaAnd + Markup map[string]any + Names Names + func (*AdditionalNames) TypeInfo() typeinfo.T + func (op *AdditionalNames) GetMarkup(ensure bool) map[string]any + func (op *AdditionalNames) Match(q Query, input *InputState) (okay bool) + type AdditionalNames_Slice []AdditionalNames + func (*AdditionalNames_Slice) TypeInfo() typeinfo.T + func (op *AdditionalNames_Slice) Repeats() bool + type AdditionalText struct + CommaAndOr CommaAndOr + Markup map[string]any + QuotedTexts QuotedTexts + func (*AdditionalText) TypeInfo() typeinfo.T + func (op *AdditionalText) GetMarkup(ensure bool) map[string]any + func (op *AdditionalText) Match(q Query, input *InputState) (okay bool) + type AdditionalText_Slice []AdditionalText + func (*AdditionalText_Slice) TypeInfo() typeinfo.T + func (op *AdditionalText_Slice) Repeats() bool + type AdditionalTraits struct + CommaAnd *CommaAnd + Markup map[string]any + Traits Traits + func (*AdditionalTraits) TypeInfo() typeinfo.T + func (op *AdditionalTraits) GetMarkup(ensure bool) map[string]any + func (op *AdditionalTraits) Match(q Query, input *InputState) (okay bool) + type AdditionalTraits_Slice []AdditionalTraits + func (*AdditionalTraits_Slice) TypeInfo() typeinfo.T + func (op *AdditionalTraits_Slice) Repeats() bool + type Adjectives struct + AdditionalAdjectives *AdditionalAdjectives + CommaAnd *CommaAnd + Kind *Kind + Markup map[string]any + Traits *Traits + func (*Adjectives) TypeInfo() typeinfo.T + func (op *Adjectives) GetMarkup(ensure bool) map[string]any + func (op *Adjectives) GetTraits() (ret Traitor) + func (op *Adjectives) Match(q Query, input *InputState) (okay bool) + func (op Adjectives) Reduce() (ret NounProperties, err error) + type Adjectives_Slice []Adjectives + func (*Adjectives_Slice) TypeInfo() typeinfo.T + func (op *Adjectives_Slice) Repeats() bool + type Are struct + Markup map[string]any + Matched Matched + func (*Are) TypeInfo() typeinfo.T + func (op *Are) GetMarkup(ensure bool) map[string]any + func (op *Are) IsPlural() bool + func (op *Are) Match(_ Query, input *InputState) (okay bool) + type Are_Slice []Are + func (*Are_Slice) TypeInfo() typeinfo.T + func (op *Are_Slice) Repeats() bool + type Article struct + Flags ArticleFlags + Markup map[string]any + Text string + func (*Article) TypeInfo() typeinfo.T + func (op *Article) GetMarkup(ensure bool) map[string]any + func (op *Article) Match(q Query, input *InputState) (okay bool) + type ArticleFlags struct + Indefinite bool + Plural bool + type Article_Slice []Article + func (*Article_Slice) TypeInfo() typeinfo.T + func (op *Article_Slice) Repeats() bool + type AspectsAreTraits struct + Are Are + Aspect Kind + Markup map[string]any + PlainNames Names + func (*AspectsAreTraits) TypeInfo() typeinfo.T + func (op *AspectsAreTraits) GetMarkup(ensure bool) map[string]any + func (op *AspectsAreTraits) Match(q Query, input *InputState) (okay bool) + func (op *AspectsAreTraits) Phase() weaver.Phase + func (op *AspectsAreTraits) Weave(w weaver.Weaves, _ rt.Runtime) (err error) + type AspectsAreTraits_Slice []AspectsAreTraits + func (*AspectsAreTraits_Slice) TypeInfo() typeinfo.T + func (op *AspectsAreTraits_Slice) Repeats() bool + type Called struct + Markup map[string]any + Matched Matched + func (*Called) TypeInfo() typeinfo.T + func (op *Called) GetMarkup(ensure bool) map[string]any + func (op *Called) Match(_ Query, input *InputState) (okay bool) + type CalledName struct + Called Called + Markup map[string]any + Name Name + func (*CalledName) TypeInfo() typeinfo.T + func (op *CalledName) GetMarkup(ensure bool) map[string]any + func (op *CalledName) GetNormalizedName() (string, error) + func (op *CalledName) Match(q Query, input *InputState) (okay bool) + type CalledName_Slice []CalledName + func (*CalledName_Slice) TypeInfo() typeinfo.T + func (op *CalledName_Slice) Repeats() bool + type Called_Slice []Called + func (*Called_Slice) TypeInfo() typeinfo.T + func (op *Called_Slice) Repeats() bool + type CommaAnd struct + Markup map[string]any + Matched Matched + func (*CommaAnd) TypeInfo() typeinfo.T + func (op *CommaAnd) GetMarkup(ensure bool) map[string]any + func (op *CommaAnd) Match(_ Query, input *InputState) (okay bool) + type CommaAndOr struct + Markup map[string]any + Matched Matched + func (*CommaAndOr) TypeInfo() typeinfo.T + func (op *CommaAndOr) GetMarkup(ensure bool) map[string]any + func (op *CommaAndOr) Match(_ Query, input *InputState) (okay bool) + type CommaAndOr_Slice []CommaAndOr + func (*CommaAndOr_Slice) TypeInfo() typeinfo.T + func (op *CommaAndOr_Slice) Repeats() bool + type CommaAnd_Slice []CommaAnd + func (*CommaAnd_Slice) TypeInfo() typeinfo.T + func (op *CommaAnd_Slice) Repeats() bool + type Context struct + func NewContext(q Query, n Scheduler) Context + type CountedKind struct + Article *Article + Kind Kind + Markup map[string]any + Matched Matched + MatchingNumber MatchingNumber + func (*CountedKind) TypeInfo() typeinfo.T + func (op *CountedKind) BuildNouns(q Query, w weaver.Weaves, run rt.Runtime, props NounProperties) (ret []DesiredNoun, err error) + func (op *CountedKind) GetMarkup(ensure bool) map[string]any + func (op *CountedKind) Match(q Query, input *InputState) (okay bool) + type CountedKind_Slice []CountedKind + func (*CountedKind_Slice) TypeInfo() typeinfo.T + func (op *CountedKind_Slice) Repeats() bool + type DesiredNoun struct + Aliases []string + ArticleTrait string + IndefiniteArticle string + Noun string + Traits []string + Values []DesiredValue + type DesiredValue struct + Assign rt.Assignment + Field string + type DirectIt struct + func IterateDirections(first *DirectionOfLinking, queue *AdditionalDirections) DirectIt + func (it *DirectIt) GetNext() (ret DirectionOfLinking) + func (it DirectIt) HasNext() bool + type Direction struct + Markup map[string]any + Text string + func (*Direction) TypeInfo() typeinfo.T + func (op *Direction) GetMarkup(ensure bool) map[string]any + func (op *Direction) Match(q Query, input *InputState) (okay bool) + type DirectionOfLinking struct + Direction Direction + FromOf Words + Linking Linking + Markup map[string]any + func (*DirectionOfLinking) TypeInfo() typeinfo.T + func (op *DirectionOfLinking) GetMarkup(ensure bool) map[string]any + func (op *DirectionOfLinking) Match(q Query, input *InputState) (okay bool) + type DirectionOfLinking_Slice []DirectionOfLinking + func (*DirectionOfLinking_Slice) TypeInfo() typeinfo.T + func (op *DirectionOfLinking_Slice) Repeats() bool + type Direction_Slice []Direction + func (*Direction_Slice) TypeInfo() typeinfo.T + func (op *Direction_Slice) Repeats() bool + type Generator interface + Generate func(Context) error + type InputState []match.TokenValue + func (in InputState) Cut(width int) []match.TokenValue + func (in InputState) GetNext(t match.Token) (ret match.TokenValue, okay bool) + func (in InputState) Len() int + func (in InputState) MatchWord(choices ...uint64) (width int) + func (in InputState) Skip(skip int) InputState + func (in InputState) Words() []match.TokenValue + type Interpreter interface + Match func(Query, *InputState) bool + type Iterator struct + func (it *Iterator) GetNext() (ret *Names) + func (it Iterator) HasNext() bool + type Kind struct + ActualKind ActualKind + Article *Article + Markup map[string]any + Matched Matched + func (*Kind) TypeInfo() typeinfo.T + func (op *Kind) BuildNouns(q Query, w weaver.Weaves, run rt.Runtime, props NounProperties) (ret []DesiredNoun, err error) + func (op *Kind) GetMarkup(ensure bool) map[string]any + func (op *Kind) Match(q Query, input *InputState) (okay bool) + func (op *Kind) Validate(ks ...kindsOf.Kinds) (ret string, err error) + type KindCalled struct + Called Called + Kind Kind + Markup map[string]any + NamedNoun NamedNoun + Traits *Traits + func (*KindCalled) TypeInfo() typeinfo.T + func (op *KindCalled) BuildNouns(q Query, w weaver.Weaves, run rt.Runtime, props NounProperties) (ret []DesiredNoun, err error) + func (op *KindCalled) GetKind() (string, error) + func (op *KindCalled) GetMarkup(ensure bool) map[string]any + func (op *KindCalled) GetNormalizedName() (string, error) + func (op *KindCalled) GetTraits() (ret Traitor) + func (op *KindCalled) Match(q Query, input *InputState) (okay bool) + type KindCalled_Slice []KindCalled + func (*KindCalled_Slice) TypeInfo() typeinfo.T + func (op *KindCalled_Slice) Repeats() bool + type Kind_Slice []Kind + func (*Kind_Slice) TypeInfo() typeinfo.T + func (op *Kind_Slice) Repeats() bool + type Kinder struct + func (it *Kinder) GetNext() (ret *Kinds) + func (it Kinder) HasNext() bool + type Kinds struct + AdditionalKinds *AdditionalKinds + Article *Article + Markup map[string]any + Matched Matched + Traits *Traits + func (*Kinds) TypeInfo() typeinfo.T + func (op *Kinds) GetMarkup(ensure bool) map[string]any + func (op *Kinds) GetNormalizedName() (string, error) + func (op *Kinds) GetTraits() (ret Traitor) + func (op *Kinds) Iterate() Kinder + func (op *Kinds) Match(q Query, input *InputState) (okay bool) + type KindsAreEither struct + CanBe Words + Kind Kind + Markup map[string]any + Traits NewTrait + func (*KindsAreEither) TypeInfo() typeinfo.T + func (op *KindsAreEither) GetMarkup(ensure bool) map[string]any + func (op *KindsAreEither) Match(q Query, input *InputState) (okay bool) + func (op *KindsAreEither) Phase() weaver.Phase + func (op *KindsAreEither) Weave(w weaver.Weaves, run rt.Runtime) (err error) + type KindsAreEither_Slice []KindsAreEither + func (*KindsAreEither_Slice) TypeInfo() typeinfo.T + func (op *KindsAreEither_Slice) Repeats() bool + type KindsAreTraits struct + Are Are + Kinds Kinds + Markup map[string]any + Traits Traits + Usually Words + func (*KindsAreTraits) TypeInfo() typeinfo.T + func (op *KindsAreTraits) GetMarkup(ensure bool) map[string]any + func (op *KindsAreTraits) Match(q Query, input *InputState) (okay bool) + func (op *KindsAreTraits) Phase() weaver.Phase + func (op *KindsAreTraits) Weave(w weaver.Weaves, run rt.Runtime) (err error) + type KindsAreTraits_Slice []KindsAreTraits + func (*KindsAreTraits_Slice) TypeInfo() typeinfo.T + func (op *KindsAreTraits_Slice) Repeats() bool + type KindsHaveProperties struct + Article *Article + CalledName *CalledName + Have Words + Kind Kind + ListOf string + Markup map[string]any + PropertyType PropertyType + func (*KindsHaveProperties) TypeInfo() typeinfo.T + func (op *KindsHaveProperties) GetMarkup(ensure bool) map[string]any + func (op *KindsHaveProperties) Match(q Query, input *InputState) (okay bool) + func (op *KindsHaveProperties) Phase() weaver.Phase + func (op *KindsHaveProperties) Weave(w weaver.Weaves, run rt.Runtime) (err error) + type KindsHaveProperties_Slice []KindsHaveProperties + func (*KindsHaveProperties_Slice) TypeInfo() typeinfo.T + func (op *KindsHaveProperties_Slice) Repeats() bool + type KindsOf struct + Are Are + KindsOf Words + Markup map[string]any + Name Name + Names Names + Traits *Traits + func (*KindsOf) TypeInfo() typeinfo.T + func (op *KindsOf) Generate(ctx Context) error + func (op *KindsOf) GetMarkup(ensure bool) map[string]any + func (op *KindsOf) GetTraits() (ret Traitor) + func (op *KindsOf) Match(q Query, input *InputState) (okay bool) + func (op *KindsOf) Phase() weaver.Phase + type KindsOf_Slice []KindsOf + func (*KindsOf_Slice) TypeInfo() typeinfo.T + func (op *KindsOf_Slice) Repeats() bool + type Kinds_Slice []Kinds + func (*Kinds_Slice) TypeInfo() typeinfo.T + func (op *Kinds_Slice) Repeats() bool + type LinkIt struct + func IterateLinks(first *Linking, queue *AdditionalLinks) LinkIt + func (it *LinkIt) GetNext() (ret Linking) + func (it LinkIt) HasNext() bool + type Linking struct + KindCalled *KindCalled + Markup map[string]any + Name *Name + Noun *Noun + Nowhere bool + func (*Linking) TypeInfo() typeinfo.T + func (op *Linking) BuildNoun(q Query, w weaver.Weaves, run rt.Runtime, props NounProperties) (ret *DesiredNoun, err error) + func (op *Linking) GetMarkup(ensure bool) map[string]any + func (op *Linking) Match(q Query, input *InputState) (okay bool) + type Linking_Slice []Linking + func (*Linking_Slice) TypeInfo() typeinfo.T + func (op *Linking_Slice) Repeats() bool + type MapConnections struct + AdditionalLinks *AdditionalLinks + Are Are + Doors Linking + Markup map[string]any + Room Linking + Through bool + func (*MapConnections) TypeInfo() typeinfo.T + func (op *MapConnections) Generate(ctx Context) error + func (op *MapConnections) GetDoors() LinkIt + func (op *MapConnections) GetMarkup(ensure bool) map[string]any + func (op *MapConnections) Match(q Query, input *InputState) (okay bool) + func (op *MapConnections) Phase() weaver.Phase + type MapConnections_Slice []MapConnections + func (*MapConnections_Slice) TypeInfo() typeinfo.T + func (op *MapConnections_Slice) Repeats() bool + type MapDirections struct + Are Are + DirectionOfLinking DirectionOfLinking + Linking *Linking + Markup map[string]any + Redirect *DirectionOfLinking + func (*MapDirections) TypeInfo() typeinfo.T + func (op *MapDirections) Generate(ctx Context) (err error) + func (op *MapDirections) GetMarkup(ensure bool) map[string]any + func (op *MapDirections) Match(q Query, input *InputState) (okay bool) + func (op *MapDirections) Phase() weaver.Phase + type MapDirections_Slice []MapDirections + func (*MapDirections_Slice) TypeInfo() typeinfo.T + func (op *MapDirections_Slice) Repeats() bool + type MapLocations struct + AdditionalDirections *AdditionalDirections + Are Are + DirectionOfLinking DirectionOfLinking + Linking Linking + Markup map[string]any + func (*MapLocations) TypeInfo() typeinfo.T + func (op *MapLocations) Generate(ctx Context) error + func (op *MapLocations) GetMarkup(ensure bool) map[string]any + func (op *MapLocations) GetOtherLocations() DirectIt + func (op *MapLocations) Match(q Query, input *InputState) (okay bool) + func (op *MapLocations) Phase() weaver.Phase + type MapLocations_Slice []MapLocations + func (*MapLocations_Slice) TypeInfo() typeinfo.T + func (op *MapLocations_Slice) Repeats() bool + type Matched []match.TokenValue + func (m Matched) DebugString() string + type Matched_Slot struct + Value Matched + func (*Matched_Slot) TypeInfo() typeinfo.T + type Matched_Slots []Matched + func (*Matched_Slots) TypeInfo() typeinfo.T + func (op *Matched_Slots) Repeats() bool + type MatchingNumber struct + Markup map[string]any + Number float64 + func (*MatchingNumber) TypeInfo() typeinfo.T + func (op *MatchingNumber) Assignment() rt.Assignment + func (op *MatchingNumber) GetMarkup(ensure bool) map[string]any + func (op *MatchingNumber) Match(q Query, input *InputState) (okay bool) + type MatchingNumber_Slice []MatchingNumber + func (*MatchingNumber_Slice) TypeInfo() typeinfo.T + func (op *MatchingNumber_Slice) Repeats() bool + type MatchingPhrases struct + AspectsAreTraits AspectsAreTraits + KindsAreEither KindsAreEither + KindsAreTraits KindsAreTraits + KindsHaveProperties KindsHaveProperties + KindsOf KindsOf + MapConnections MapConnections + MapDirections MapDirections + MapLocations MapLocations + Markup map[string]any + NamesAreLikeVerbs NamesAreLikeVerbs + NamesVerbNames NamesVerbNames + NounPropertyValue NounPropertyValue + PropertyNounValue PropertyNounValue + TimedRule TimedRule + Understand Understand + VerbNamesAreNames VerbNamesAreNames + func (*MatchingPhrases) TypeInfo() typeinfo.T + func (op *MatchingPhrases) GetMarkup(ensure bool) map[string]any + type MatchingPhrases_Slice []MatchingPhrases + func (*MatchingPhrases_Slice) TypeInfo() typeinfo.T + func (op *MatchingPhrases_Slice) Repeats() bool + type Name struct + Article *Article + Markup map[string]any + Matched Matched + func (*Name) TypeInfo() typeinfo.T + func (op *Name) BuildNouns(q Query, w weaver.Weaves, run rt.Runtime, props NounProperties) (ret []DesiredNoun, err error) + func (op *Name) GetMarkup(ensure bool) map[string]any + func (op *Name) GetNormalizedName() (string, error) + func (op *Name) Match(q Query, input *InputState) (okay bool) + type Name_Slice []Name + func (*Name_Slice) TypeInfo() typeinfo.T + func (op *Name_Slice) Repeats() bool + type NamedNoun struct + Markup map[string]any + Name *Name + Noun *Noun + func (*NamedNoun) TypeInfo() typeinfo.T + func (op *NamedNoun) BuildNouns(q Query, w weaver.Weaves, run rt.Runtime, props NounProperties) ([]DesiredNoun, error) + func (op *NamedNoun) GetMarkup(ensure bool) map[string]any + func (op *NamedNoun) GetNormalizedName() (ret string, err error) + func (op *NamedNoun) Match(q Query, input *InputState) (okay bool) + type NamedNoun_Slice []NamedNoun + func (*NamedNoun_Slice) TypeInfo() typeinfo.T + func (op *NamedNoun_Slice) Repeats() bool + type Names struct + AdditionalNames *AdditionalNames + CountedKind *CountedKind + Kind *Kind + KindCalled *KindCalled + Markup map[string]any + Name *Name + Noun *Noun + func (*Names) TypeInfo() typeinfo.T + func (op *Names) GetMarkup(ensure bool) map[string]any + func (op *Names) GetNames() Iterator + func (op *Names) GetTraits() (ret Traitor) + func (op *Names) HasAnonymousKind() bool + func (op *Names) Match(q Query, input *InputState) (okay bool) + func (op Names) BuildNouns(q Query, w weaver.Weaves, run rt.Runtime, props NounProperties) (ret []DesiredNoun, err error) + type NamesAreLikeVerbs struct + Adjectives Adjectives + Are Are + Markup map[string]any + Names Names + VerbPhrase *VerbPhrase + func (*NamesAreLikeVerbs) TypeInfo() typeinfo.T + func (op *NamesAreLikeVerbs) Generate(ctx Context) (err error) + func (op *NamesAreLikeVerbs) GetAdjectives() Adjectives + func (op *NamesAreLikeVerbs) GetMarkup(ensure bool) map[string]any + func (op *NamesAreLikeVerbs) GetNouns() Names + func (op *NamesAreLikeVerbs) GetOtherNouns() (ret Names) + func (op *NamesAreLikeVerbs) GetVerb() (ret string) + func (op *NamesAreLikeVerbs) Match(q Query, input *InputState) (okay bool) + func (op *NamesAreLikeVerbs) Phase() weaver.Phase + type NamesAreLikeVerbs_Slice []NamesAreLikeVerbs + func (*NamesAreLikeVerbs_Slice) TypeInfo() typeinfo.T + func (op *NamesAreLikeVerbs_Slice) Repeats() bool + type NamesVerbNames struct + Are Are + Markup map[string]any + Names Names + OtherNames Names + Verb Verb + func (*NamesVerbNames) TypeInfo() typeinfo.T + func (op *NamesVerbNames) Generate(ctx Context) (err error) + func (op *NamesVerbNames) GetAdjectives() (_ Adjectives) + func (op *NamesVerbNames) GetMarkup(ensure bool) map[string]any + func (op *NamesVerbNames) GetNouns() Names + func (op *NamesVerbNames) GetOtherNouns() Names + func (op *NamesVerbNames) GetVerb() string + func (op *NamesVerbNames) Match(q Query, input *InputState) (okay bool) + func (op *NamesVerbNames) Phase() weaver.Phase + type NamesVerbNames_Slice []NamesVerbNames + func (*NamesVerbNames_Slice) TypeInfo() typeinfo.T + func (op *NamesVerbNames_Slice) Repeats() bool + type Names_Slice []Names + func (*Names_Slice) TypeInfo() typeinfo.T + func (op *Names_Slice) Repeats() bool + type NewTrait struct + Markup map[string]any + Matched Matched + NewTrait *NewTrait + func (*NewTrait) TypeInfo() typeinfo.T + func (op *NewTrait) GetMarkup(ensure bool) map[string]any + func (op *NewTrait) Iterate() NewTraitIterator + func (op *NewTrait) Match(q Query, input *InputState) (okay bool) + type NewTraitIterator struct + func (it *NewTraitIterator) GetNext() (ret *NewTrait) + func (it NewTraitIterator) HasNext() bool + type NewTrait_Slice []NewTrait + func (*NewTrait_Slice) TypeInfo() typeinfo.T + func (op *NewTrait_Slice) Repeats() bool + type Noun struct + ActualNoun ActualNoun + Article *Article + Markup map[string]any + Matched Matched + func (*Noun) TypeInfo() typeinfo.T + func (op *Noun) BuildNouns(_ Query, w weaver.Weaves, _ rt.Runtime, props NounProperties) (ret []DesiredNoun, err error) + func (op *Noun) GetMarkup(ensure bool) map[string]any + func (op *Noun) Match(q Query, input *InputState) (okay bool) + type NounBuilder interface + BuildNouns func(Query, weaver.Weaves, rt.Runtime, NounProperties) ([]DesiredNoun, error) + type NounBuilder_Slot struct + Value NounBuilder + func (*NounBuilder_Slot) TypeInfo() typeinfo.T + type NounBuilder_Slots []NounBuilder + func (*NounBuilder_Slots) TypeInfo() typeinfo.T + func (op *NounBuilder_Slots) Repeats() bool + type NounProperties struct + Kinds []string + Traits []string + type NounPropertyValue struct + Article *Article + Has Words + Markup map[string]any + NamedNoun NamedNoun + Of *Words + Property Property + SingleValue SingleValue + func (*NounPropertyValue) TypeInfo() typeinfo.T + func (op *NounPropertyValue) Generate(ctx Context) error + func (op *NounPropertyValue) GetMarkup(ensure bool) map[string]any + func (op *NounPropertyValue) GetNamedNoun() NamedNoun + func (op *NounPropertyValue) GetProperty() Property + func (op *NounPropertyValue) GetValue() rt.Assignment + func (op *NounPropertyValue) Match(q Query, input *InputState) (okay bool) + func (op *NounPropertyValue) Phase() weaver.Phase + type NounPropertyValue_Slice []NounPropertyValue + func (*NounPropertyValue_Slice) TypeInfo() typeinfo.T + func (op *NounPropertyValue_Slice) Repeats() bool + type Noun_Slice []Noun + func (*Noun_Slice) TypeInfo() typeinfo.T + func (op *Noun_Slice) Repeats() bool + type Paragraph [][]match.TokenValue + func NewParagraph(str string, assign rt.Assignment) (ret Paragraph, err error) + func (p *Paragraph) Generate(z weaver.Phase, q Query, u Scheduler) (okay bool, err error) + type PrefixValue rules.Prefix + type Property struct + Article *Article + Markup map[string]any + Matched string + func (*Property) TypeInfo() typeinfo.T + func (op *Property) GetMarkup(ensure bool) map[string]any + func (op *Property) Match(q Query, kind string, input *InputState) (okay bool) + func (op *Property) String() string + type PropertyNounValue struct + Are Are + Article *Article + Markup map[string]any + NamedNoun NamedNoun + Of Words + Property Property + QuotedTexts *QuotedTexts + SingleValue *SingleValue + func (*PropertyNounValue) TypeInfo() typeinfo.T + func (op *PropertyNounValue) Generate(ctx Context) error + func (op *PropertyNounValue) GetMarkup(ensure bool) map[string]any + func (op *PropertyNounValue) GetNamedNoun() NamedNoun + func (op *PropertyNounValue) GetProperty() Property + func (op *PropertyNounValue) GetValue() (ret rt.Assignment) + func (op *PropertyNounValue) Match(q Query, input *InputState) (okay bool) + func (op *PropertyNounValue) Phase() weaver.Phase + type PropertyNounValue_Slice []PropertyNounValue + func (*PropertyNounValue_Slice) TypeInfo() typeinfo.T + func (op *PropertyNounValue_Slice) Repeats() bool + type PropertyType struct + Kind *Kind + Markup map[string]any + Primitive string + func (*PropertyType) TypeInfo() typeinfo.T + func (op *PropertyType) GetMarkup(ensure bool) map[string]any + func (op *PropertyType) GetType(listOf bool) (ret mdl.FieldInfo, err error) + func (op *PropertyType) Match(q Query, input *InputState) (okay bool) + type PropertyType_Slice []PropertyType + func (*PropertyType_Slice) TypeInfo() typeinfo.T + func (op *PropertyType_Slice) Repeats() bool + type Property_Slice []Property + func (*Property_Slice) TypeInfo() typeinfo.T + func (op *Property_Slice) Repeats() bool + type Query interface + FindField func(kind string, field []match.TokenValue) (string, int) + FindKind func([]match.TokenValue, *kindsOf.Kinds) (string, int) + FindNoun func(name []match.TokenValue, pkind *string) (string, int) + FindTrait func([]match.TokenValue) (string, int) + GetContext func() int + func AddContext(q Query, flags int) (ret Query) + type QuotedText struct + Markup map[string]any + Matched string + func (*QuotedText) TypeInfo() typeinfo.T + func (op *QuotedText) Assignment() rt.Assignment + func (op *QuotedText) GetMarkup(ensure bool) map[string]any + func (op *QuotedText) Match(q Query, input *InputState) (okay bool) + func (op *QuotedText) String() string + func (op *QuotedText) TextEval() (ret rt.TextEval) + type QuotedText_Slice []QuotedText + func (*QuotedText_Slice) TypeInfo() typeinfo.T + func (op *QuotedText_Slice) Repeats() bool + type QuotedTexts struct + AdditionalText *AdditionalText + Markup map[string]any + QuotedText QuotedText + func (*QuotedTexts) TypeInfo() typeinfo.T + func (op *QuotedTexts) Assignment() (ret rt.Assignment) + func (op *QuotedTexts) GetMarkup(ensure bool) map[string]any + func (op *QuotedTexts) Iterate() TextListIterator + func (op *QuotedTexts) Match(q Query, input *InputState) (okay bool) + func (op *QuotedTexts) Reduce() (ret []string) + type QuotedTexts_Slice []QuotedTexts + func (*QuotedTexts_Slice) TypeInfo() typeinfo.T + func (op *QuotedTexts_Slice) Repeats() bool + type RuleName struct + Article string + Markup map[string]any + Matched Matched + Prefix bool + Suffix bool + func (*RuleName) TypeInfo() typeinfo.T + func (op *RuleName) GetMarkup(ensure bool) map[string]any + func (op *RuleName) Match(q Query, input *InputState) (okay bool) + type RuleName_Slice []RuleName + func (*RuleName_Slice) TypeInfo() typeinfo.T + func (op *RuleName_Slice) Repeats() bool + type RulePrefix struct + Markup map[string]any + PrefixValue PrefixValue + func (*RulePrefix) TypeInfo() typeinfo.T + func (op *RulePrefix) GetMarkup(ensure bool) map[string]any + func (op *RulePrefix) Match(q Query, input *InputState) (okay bool) + type RulePrefix_Slice []RulePrefix + func (*RulePrefix_Slice) TypeInfo() typeinfo.T + func (op *RulePrefix_Slice) Repeats() bool + type RuleSuffix struct + Markup map[string]any + SuffixValue SuffixValue + func (*RuleSuffix) TypeInfo() typeinfo.T + func (op *RuleSuffix) GetMarkup(ensure bool) map[string]any + func (op *RuleSuffix) Match(q Query, input *InputState) (okay bool) + type RuleSuffix_Slice []RuleSuffix + func (*RuleSuffix_Slice) TypeInfo() typeinfo.T + func (op *RuleSuffix_Slice) Repeats() bool + type RuleTarget struct + Kind *Kind + Markup map[string]any + Noun *Noun + func (*RuleTarget) TypeInfo() typeinfo.T + func (op *RuleTarget) GetMarkup(ensure bool) map[string]any + func (op *RuleTarget) Match(q Query, input *InputState) (okay bool) + type RuleTarget_Slice []RuleTarget + func (*RuleTarget_Slice) TypeInfo() typeinfo.T + func (op *RuleTarget_Slice) Repeats() bool + type Scheduler interface + Schedule func(phase weaver.Phase, cb func(weaver.Weaves, rt.Runtime) error) error + type Separator int + const AndSep + const CommaSep + func ReadCommaAnd(ws []match.TokenValue) (ret Separator, err error) + func ReadCommaAndOr(ws []match.TokenValue) (ret Separator, err error) + func (s Separator) Len() int + type SingleValue struct + Kind *Kind + Markup map[string]any + MatchingNumber *MatchingNumber + Noun *Noun + QuotedText *QuotedText + func (*SingleValue) TypeInfo() typeinfo.T + func (op *SingleValue) Assignment() (ret rt.Assignment) + func (op *SingleValue) GetMarkup(ensure bool) map[string]any + func (op *SingleValue) Match(q Query, input *InputState) (okay bool) + type SingleValue_Slice []SingleValue + func (*SingleValue_Slice) TypeInfo() typeinfo.T + func (op *SingleValue_Slice) Repeats() bool + type SubAssignment struct + Assignment rtti.Assignment + Markup map[string]any + func (*SubAssignment) TypeInfo() typeinfo.T + func (op *SubAssignment) GetExe() (ret []rt.Execute, okay bool) + func (op *SubAssignment) GetMarkup(ensure bool) map[string]any + func (op *SubAssignment) Match(input *InputState) (okay bool) + type SubAssignment_Slice []SubAssignment + func (*SubAssignment_Slice) TypeInfo() typeinfo.T + func (op *SubAssignment_Slice) Repeats() bool + type SuffixValue rules.Suffix + type TextListIterator struct + func (it *TextListIterator) GetNext() string + func (it *TextListIterator) GetNextText() (ret *QuotedText) + func (it TextListIterator) HasNext() bool + type TimedRule struct + Markup map[string]any + Pattern Kind + RuleName *RuleName + RulePrefix RulePrefix + RuleSuffix *RuleSuffix + RuleTarget *RuleTarget + Someone bool + SubAssignment SubAssignment + func (*TimedRule) TypeInfo() typeinfo.T + func (op *TimedRule) Generate(ctx Context) (err error) + func (op *TimedRule) GetMarkup(ensure bool) map[string]any + func (op *TimedRule) Match(q Query, input *InputState) (okay bool) + type TimedRule_Slice []TimedRule + func (*TimedRule_Slice) TypeInfo() typeinfo.T + func (op *TimedRule_Slice) Repeats() bool + type Trait struct + Article *Article + Markup map[string]any + Matched string + func (*Trait) TypeInfo() typeinfo.T + func (op *Trait) GetMarkup(ensure bool) map[string]any + func (op *Trait) Match(q Query, input *InputState) (okay bool) + func (op *Trait) String() string + type Trait_Slice []Trait + func (*Trait_Slice) TypeInfo() typeinfo.T + func (op *Trait_Slice) Repeats() bool + type Traitor struct + func (it *Traitor) GetNext() (ret Trait) + func (it Traitor) HasNext() bool + type Traits struct + AdditionalTraits *AdditionalTraits + Markup map[string]any + Trait Trait + func (*Traits) TypeInfo() typeinfo.T + func (op *Traits) GetMarkup(ensure bool) map[string]any + func (op *Traits) GetTraits() Traitor + func (op *Traits) Match(q Query, input *InputState) (okay bool) + type Traits_Slice []Traits + func (*Traits_Slice) TypeInfo() typeinfo.T + func (op *Traits_Slice) Repeats() bool + type Understand struct + Article *Article + As Words + Markup map[string]any + Names Names + PluralOf string + QuotedTexts QuotedTexts + Understand Words + func (*Understand) TypeInfo() typeinfo.T + func (op *Understand) Generate(ctx Context) error + func (op *Understand) GetMarkup(ensure bool) map[string]any + func (op *Understand) Match(q Query, input *InputState) (okay bool) + func (op *Understand) Phase() weaver.Phase + type Understand_Slice []Understand + func (*Understand_Slice) TypeInfo() typeinfo.T + func (op *Understand_Slice) Repeats() bool + type Verb struct + Markup map[string]any + Text string + func (*Verb) TypeInfo() typeinfo.T + func (op *Verb) GetMarkup(ensure bool) map[string]any + func (op *Verb) Match(q Query, input *InputState) (okay bool) + type VerbDesc struct + Alternate string + Implies []string + Object string + Relation string + Reversed bool + Subject string + type VerbNamesAreNames struct + Are Are + Markup map[string]any + Names Names + OtherNames Names + Verb Verb + func (*VerbNamesAreNames) TypeInfo() typeinfo.T + func (op *VerbNamesAreNames) Generate(ctx Context) error + func (op *VerbNamesAreNames) GetAdjectives() (_ Adjectives) + func (op *VerbNamesAreNames) GetMarkup(ensure bool) map[string]any + func (op *VerbNamesAreNames) GetNouns() Names + func (op *VerbNamesAreNames) GetOtherNouns() Names + func (op *VerbNamesAreNames) GetVerb() string + func (op *VerbNamesAreNames) Match(q Query, input *InputState) (okay bool) + func (op *VerbNamesAreNames) Phase() weaver.Phase + type VerbNamesAreNames_Slice []VerbNamesAreNames + func (*VerbNamesAreNames_Slice) TypeInfo() typeinfo.T + func (op *VerbNamesAreNames_Slice) Repeats() bool + type VerbPhrase struct + Markup map[string]any + PlainNames Names + Verb Verb + func (*VerbPhrase) TypeInfo() typeinfo.T + func (op *VerbPhrase) GetMarkup(ensure bool) map[string]any + func (op *VerbPhrase) Match(q Query, input *InputState) (okay bool) + type VerbPhrase_Slice []VerbPhrase + func (*VerbPhrase_Slice) TypeInfo() typeinfo.T + func (op *VerbPhrase_Slice) Repeats() bool + type Verb_Slice []Verb + func (*Verb_Slice) TypeInfo() typeinfo.T + func (op *Verb_Slice) Repeats() bool + type Words struct + Markup map[string]any + Matched Matched + func (*Words) TypeInfo() typeinfo.T + func (op *Words) GetMarkup(ensure bool) map[string]any + func (op *Words) Match(_ Query, input *InputState, hashes ...uint64) (okay bool) + type Words_Slice []Words + func (*Words_Slice) TypeInfo() typeinfo.T + func (op *Words_Slice) Repeats() bool v0.24.4 May 7, 2024 v0.24.4-1 May 9, 2024 v0.23.3 Apr 6, 2024 v0.23.3-2 Apr 6, 2024 v0.23.3-1 Apr 6, 2024 v0.23.2 Mar 9, 2024