Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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+/)


I pasted these two comments into Claude and had it update the tool: https://gist.github.com/simonw/dc79f6adcdb189469890bc0a44331...

New version is now live at https://tools.simonwillison.net/writing-style




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: