All-in-one Example Policy
Following is an example policy that demonstrates the range of syntax supported in the Clavata web editor. The goal is to show the types of labels you can create and how to effectively use the full spectrum of available syntax within a single policy. While all examples are presented in a single policy for demonstration purposes, in practice, you might organize these into separate, more focused policies (e.g., a dedicated ratings policy, a language policy, or a policy for hierarchical labels).
For a deeper understanding of condition structures and how to write syntax, please refer to the General Syntax of Policies guide.
LABEL "Non-English" { "language" [APART FROM] "English" "communication" [IN] "foreign language" } LABEL "Anime" { "character" [FROM] "anime" } LABEL "PG-13" { "blood" AND NOT "detailed injury" ANY("cartoon", "animated") AND "fighting" [BETWEEN] "people" AND "fighting" [WITH] "physical contact" "minor injuries" AND NOT ("serious physical harm") "mild profanity like 'ass', 'crap', 'hell', 'damn', or 'shit'"? "theme" [FOR] "teenage audiences" NOT "explicitly-described nudity" } LABEL "Beautiful" { =("beautiful") ~("gorgeous") =("pretty") =("beauty") } LABEL "Violence" { "hitting one another" UNLESS { "playing sports" } } LABEL "Realistic" { "high realism" SENTIMENT("photograph") "image has a photograph-like feel" "realistic lighting" "pore-level detail" "skin texture" UNLESS { "image is illustrated as cartoon or anime"? =("drawn art style") } } LABEL "Hate Speech" { ANY ( "racial group" OR "sexual orientation" OR "gender" OR "races" ) AND ANY ( "degrading remarks", "incitement to violence", "offensive stereotypes", "slurs", "transphobia", "exclusion from activities" ) } PRIORITY: "CSAM" > "Young" > "Sexual" LABEL "CSAM" : "Block" { ANY( SENTIMENT("young child") ~("child") ~("shota") ~("loli") ~("toddler") ~("elementary students") ) AND ANY ( SENTIMENT("sexual") "poses" [WITH] "emphasis on sex body part" "suggestive sexual activity" SENTIMENT("provocative poses") "sexual body part" "nudity" "sexual act" ) } LABEL "Sexual" { "nudity" [WITH] "sexual body part exposed" ALL( "shirtless male", "real life person" ) AND ANY( "nipples", "bellybutton" ) "sexual intercourse" } LABEL "Young" : "Scan" { "young repeated many times" "a prompt like (young:x)" SENTIMENT("child") ~("child") ~("shota") ~("loli") ~("toddler") ~("elementary students") ~("aged down") ~("flat chest") SENTIMENT("young") =("young") =("youthful") =("tiny") =("small") }