#1 by Tabero
Hi, I am preparing an experiment that involves communication between participants using a custom live page and JavaScript (instead of the in-built chat function). We want to deter participants from being aggressive to one another or revealing personal information (beyond using the fine administered post-experiment), so I wondered if anyone has experience with integrating a profanity and/or personal information cleaner into oTree, or has any idea how I might go about doing so? Any advice would be greatly appreciated.
#2 by clintmckenna
For the profanity bit... perhaps as part of the live page code in init.py, you can send the writer's text to a 3rd party API (like Google's Perspective API https://perspectiveapi.com/) and if it meets some threshold, censor or give the writer feedback before sending it to other participants. Not sure about the personal information problem though.