The application discloses a
content filtering method and
system based on role portraits and a storage medium. The method comprises the following steps: a
client establishes a first role portrait
library for a
user role, and sends the first role portrait
library to a
server; the
server learns each received first role portrait
library, and generates a second role portrait library for each role; when the
client receives conversation information sent by the
user role, it is judged whether the
user role matches the first role portrait library; if yes, the first role portrait library is used to filter the content of the conversation information; otherwise, the
client sends the conversation information to the
server, the server matches a corresponding second role portrait library according to the user role, and uses the second role portrait library to filter the content of the conversation information. The application solves the problems of the prior art, such as rigid
filtering rules, incapability of combining with context, and uneven load of the client and the server, and realizes intelligent, accurate and adaptive
content filtering.