23 lines
641 B
Plaintext
23 lines
641 B
Plaintext
package drools
|
|
|
|
import com.iqser.red.service.redaction.v1.server.redaction.model.Section
|
|
|
|
global Section section
|
|
|
|
|
|
// --------------------------------------- CBI rules -------------------------------------------------------------------
|
|
|
|
//rule "0: Expand CBI Authors with firstname initials"
|
|
// when
|
|
// Section(matchesType("CBI_author"))
|
|
// then
|
|
// section.expandByRegEx("CBI_author", "(,? [A-Z]\\.?( ?[A-Z]\\.?)?( ?[A-Z]\\.?)?\\b\\.?)", false, 1);
|
|
// end
|
|
|
|
|
|
rule "1: Find headlines "
|
|
when
|
|
Section(text.length() > 1)
|
|
then
|
|
section.redactHeadline("PII", 1, "Headline found", "n-a.");
|
|
end |