Fix bug DNN-3018: implement the mentions function.