←back to thread

645 points ReadCarlBarks | 1 comments | | HN request time: 0.267s | source
Show context
sharkjacobs ◴[] No.44332361[source]
This seems to use a hard coded list of explicit rules, not an LLM

https://writewithharper.com/docs/rules

https://github.com/Automattic/harper/blob/0c04291bfec25d0e93...

        "PointIsMoot" => (
            ["your point is mute"],
            ["your point is moot"],
            "Did you mean `your point is moot`?",
            "Typo: `moot` (meaning debatable) is correct rather than `mute`."
        ),
replies(1): >>44332589 #
1. a2128 ◴[] No.44332589[source]
From a quick look phrase corrections is just one type of rule. There are many other rules, some are dynamic like when to use "your" vs "you're", oxford commas, etc.

That it doesn't use LLMs is its advantage, it runs in under 10ms and can be easily embedded in software and still provide useful grammar checking even if it's not exhaustive