4 ms·
I don't think it is working properly. The second(?) pattern match is bad. For example, for It is quite difficult to find untainted samples. We used various
by bmacho 2y ago
I don't think it is working properly. The second(?) pattern match is bad. For example, for
It is quite difficult to find untainted samples. We used various methods to isolate four samples.
it gives
Found "quite" in: "is quite difficult to find untainted samples."
Found "various" in: ""
Otherwise great work, I like these very fast html/js tools.
- KTibow 2y agoLooking 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