Re:JavaScript library that converts a string to gender-neutr...
by butler952 on Friday December 30, 2022 @06:07AM
(#34183970)
Thanks for sharing this!
I've had a quick look and it looks great for identifying where improvements can be made to content in your codebase.
I don't think it's suitable for my use case as the content will be in a database or localStorage, and it seems to only be able to recommend changes rather than dynamically make them. Unless I have misinterpreted things.
Re:JavaScript library that converts a string to gender-neutr...
by kimburgess on Friday December 30, 2022 @07:59AM
(#34184598)
When using it as a lib you can pass a markdown string (https://github.com/get-alex/alex#markdownvalue-config) or raw text string (https://github.com/get-alex/alex#textvalue-config). This will return an object that should contain everything you need to perform a naive replacement.
You can either integrate it with external tooling (common use is in a build pipeline for docs), or use the JS API directly: https://github.com/get-alex/alex#api.