Found a small bug related to using a regular expression matcher and the ‘topics’ functionality where the active AltTopic(s) and the parent are listed in suggestions.
+ bob : Actor 'bob;;;him'
;
++ AskTopic '<NoCase>%lighthouse%'
"Lighthouse Text"
name = 'the lighthouse'
timesToSuggest = 5
;
+++ AltTopic
"Alt lighthouse text"
timesToSuggest = 5
isActive = true
;
This will result in You could ask him about lighthouse or lighthouse.
The problem is on line 4332 of actor.t. When the code enters this bit, it will not run 4418’s findBestResponse which is how the engine is determining which alt topic wins