Enforce commenter gender targeting
This commit is contained in:
1 parent
8523873831
commit
12e2dc56f1
5 files changed
+38
-6
No files matched your search
@@ -426,7 +426,9 @@ Use every applicable tag; tags may overlap. Set safety to "nsfw" when nudity, ex
|
||||
+ 'the comment to state a gender. Generic praise, jokes, requests directed at '
|
||||
+ 'the post author, emojis, and ambiguous reactions do not qualify. expressedGender is the gender perspective the '
|
||||
+ 'comment explicitly states or strongly communicates in relation to the depicted role, not a claim about the '
|
||||
+ 'author\'s real identity. Use unknown whenever the text does not explicitly support one. Return JSON only: '
|
||||
+ 'author\'s real identity. Self-referential sex characteristics strongly communicate the matching perspective; '
|
||||
+ 'for example, references to "my bulge", "my cock", or "my dick" communicate male. Use unknown whenever the text '
|
||||
+ 'does not explicitly support or strongly communicate a perspective. Return JSON only: '
|
||||
+ '{"results":[{"id":"c1","qualifies":true,"expressedGender":"female","confidence":0.9,"evidence":"short reason"}]}. '
|
||||
+ 'Confidence is between 0 and 1; keep evidence under 200 characters.';
|
||||
const user = comments.map((comment) => (
|
||||
|
||||
@@ -287,6 +287,8 @@ export class MonitorService {
|
||||
return pairs.flatMap(({ post, comment }): RedditPost[] => {
|
||||
const verdict = this.commentReactionCache.get(comment.fullname);
|
||||
if (!verdict?.qualifies || verdict.confidence < COMMENT_REACTION_CONFIDENCE) return [];
|
||||
const targetGenders = this.config.reddit.targetGenders;
|
||||
if (targetGenders.length > 0 && !targetGenders.includes(verdict.expressedGender)) return [];
|
||||
return [{
|
||||
...post,
|
||||
id: comment.fullname,
|
||||
|
||||
Reference in new issue
Block a user