Detect Non-Inclusive Language with Retext and Node.js
This tutorial demonstrates how to use the retext libraries and Node.js to detect potentially problematic language in text or markdown files. The process involves installing necessary dependencies, setting up a Deepgram API key, generating a transcript with Deepgram, and creating a reusable function to check for non-inclusive language using retextProfanities and retextEquality plugins. The results are then logged to the console as suggestions for improvement. This method can be used to identify and change usage patterns of non-inclusive language in various contexts.
Company
Deepgram
Date published
Oct. 1, 2022
Author(s)
Kevin Lewis
Word count
894
Language
English
Hacker News points
None found.