in reply to Re^3: Chatterbot update
in thread Chatterbot update

To get the canonical name, I retrieve the page with ;displaytype=xml and extract its /node/@title (that's XPath).

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^5: Chatterbot update
by cavac (Prior) on Jun 19, 2024 at 11:57 UTC
      And I cache the titles to minimise the number of calls.

      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]