Validate document content against set of rules

Hi there,

Just wondering whether there is a model (or a pipeline suggestion) to validate document’s content against given set of rules. For instance, validating GDPR rules against a company’s data policy document.
Thanks in advance.

Cheers,
AF