4 ms·
Looking at the code, the issue is that both `findWeaselWords` and `getContext` construct a list of words but do it differently: const words = text.toLowerCas
by KTibow 2y ago
Looking at the code, the issue is that both `findWeaselWords` and `getContext` construct a list of words but do it differently:
const words = text.toLowerCase().split(/\b/)
vs
const words = text.split(/\s+/)
- simonw 2y agoI pasted these two comments into Claude and had it update the tool: https://gist.github.com/simonw/dc79f6adcdb189469890bc0a44331774 https://gist.github.com/simonw/dc79f6adcdb189469890bc0a44331... New version is now live at https://tools.simonwillison.net/writing-style https://tools.simonwillison.net/writing-style