News for hackers. Stuff that matters.
Re:English: A vs. An by docheinestages on Sunday September 20, 2026 @01:02PM (#49777647)
It really depends on the use case, which the author didn't hint to (sure, they say procedurally generating text, but exactly how and for what reason?). But whatever it is, I assume it needs to be accurate to some degree, and having a deterministic ruleset is just too subjective and superficial to cover all cases.

It doesn't need to be a full-fledged LLM either. What I mean is that a probabilistic machine learning model trained on a sufficiently large dataset is probably a better choice here. Small language models are pretty efficient nowadays, even for on-device use cases with constrained resources.

Re:English: A vs. An by emn13 on Wednesday September 23, 2026 @02:37AM (#49812463)
Well, I did once scrape wikipedia and classify based off simply off string suffix (storing those where longer suffixes disagreed with the shorter rule), and that's quite simple and effective - https://eamonnerbonne.github.io/a-vs-an/AvsAnDemo/ - and since it's based off actual statistics, it correctly distinguishes textually subtle stuff like "a NASA scientist" vs. "an NSA analyst".

There are structural limitations (i.e. this implementation never looks at preceding context and sometimes that matters, nor does it understand other clues like punctuation or multi-word suffixes). Nevertheless, the accuracy is high enough that I'm not sure it'd be easy for a small model to beat it, especially not without considerably more work to make sure your inputs cover more context (which in principle the plain statistics approach could likely deal with too).

If the whole point of multi-layer networks is to deal with weirdly shaped, non-obvious manifolds in a very high-dimensional space, then this problem just doesn't look that difficult and perhaps does not need that mathematical finesse: just store the prototypical examples and you're pretty much there without anything fancier.