[services/textproc/brain] fix mentions at end-of-string (/$/ != /\b/)