Search code examples
node.jsgoogle-cloud-platformgoogle-cloud-dlp

Is it possible to use google DLP to create a bad words filter


Working on nodejs backend with google products, I am trying to make use of google DLP to filter out bad words, so that after users send a message request, the backend can send response to the frontend if the message contains bad words. But the DLP seems only scan source from within BigQuery, Google cloud storage or Cloud datastore. Is there an api that can scan the bad words within DLP?


Solution

  • You can use the content methods for that.

    https://cloud.google.com/dlp/docs/concepts-method-types#content-methods