untested code for character generation based on at mentions