frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Why do LLMs struggle with word count?

2•rishikeshs•2h ago
I've noticed that most LLMs struggle to generate within a set word count. Any reason for this?

What is causing this limitation? If a basic online word count tool can do this, why can't these big companies do this?

Comments

viraptor•2h ago
> Any reason for this?

They're not trained for that. And there's no good reason to improve it if you can instead rerun the paragraph saying "make this slightly shorter".

> If a basic online word count tool can do this

It's an entirely different technology and not comparable at all. If you want to involve an actual word counter, this is not hard to integrate, with a basic loop that measures the output and feeds back the result so that the LLM can shorten/lengthen the text automatically before returning to you.

nivertech•1h ago
they don't see words, only tokens

and even with tokens they don't know how to count them at the LLM completion layer

they have to be trained with something like RLHF about word counting at the question answering / instruction following layers

or at the application layer (so called "agentic workflows"), e.g. writing a Python code to count words, or calling a function or a CLI tool like "wc"

Root cause for why Windows 11 is breaking or corrupting SSDs may have been found

https://www.neowin.net/news/root-cause-for-why-windows-11-is-breaking-or-corrupting-ssds-may-have...
1•bundie•15s ago•0 comments

Silicon Valley's most powerful alliance just got stronger

https://www.theverge.com/command-line-newsletter/773260/google-apple-search-deal-money-ai
1•retskrad•33s ago•1 comments

The Oscar Winning Algorithm

https://sangarshanan.com/2025/09/06/perlin-noise/
1•phantomshelby•2m ago•0 comments

Strudel Flow

https://xyflow.com/strudel-flow
1•fcpguru•4m ago•0 comments

Musk's $1T pay package is full of watered-down takes on his own broken promises

https://techcrunch.com/2025/09/06/musks-1t-pay-package-is-full-of-watered-down-versions-of-his-ow...
2•rntn•5m ago•0 comments

Language-Oriented Programming in Racket(2019)

https://www.youtube.com/watch?v=z8Pz4bJV3Tk
2•farhanhubble•8m ago•0 comments

Chemical pollution a threat comparable to climate change, scientists warn

https://www.theguardian.com/environment/2025/aug/06/chemical-pollution-threat-comparable-climate-...
2•PaulHoule•8m ago•0 comments

Im New

1•kamdemmed_cool•9m ago•0 comments

Im New

1•kamdemmed_cool•10m ago•0 comments

Exploiting the Impossible: A Vulnerability Apple Deems Unexploitable

https://jhftss.github.io/Exploiting-the-Impossible/
1•walterbell•11m ago•0 comments

Metilcobalamina: Afinal, pra que serve essa tal de vitamina B12 "diferentona"?

https://produtoavaliado.com.br/metilcobalamina-afinal-pra-que-serve-essa-t/
1•Rafadekoken•12m ago•1 comments

BoldPixels: A free pixel art font

https://yukipixels.itch.io/boldpixels
1•clessg•13m ago•0 comments

Show HN: Built a trade journal for memecoin traders - looking for feedback

https://fikr.net
1•rayoe•15m ago•1 comments

XEmacs 21.5.36 "leeks" is released

https://www.xemacs.org/Releases/21.5.36.html
1•gudzpoz•17m ago•0 comments

Soundscope – a CLI tool to analyze audio files (FFT, LUFS, waveform)

https://github.com/bananaofhappiness/soundscope
1•bnnfhppnss•18m ago•0 comments

Show HN: 60-Second Linux Analysis, Supercharged with Nix and LLMs

https://quesma.com/blog/60s-linux-analysis-nix-llms/
2•piotrgrabowski•20m ago•0 comments

We Badly Need Frameworks

https://koolcodez.com/blog/we-badly-need-frameworks/
2•luciodale•21m ago•1 comments

Ask HN: My Math Anxiety Journey – Worried About My 5th Grader

1•johngorse•21m ago•0 comments

You might not need Python-dotenv

https://blog.natfu.be/no-python-dotenv/
1•NeutralForest•22m ago•0 comments

Tesla offers pay package to CEO Elon Musk that could be worth up to $1T

https://www.cbsnews.com/news/elon-musk-tesla-new-compensation-pay-package-1-trillion/
1•perihelions•24m ago•0 comments

Show HN: The Best TV Series You Haven't Seen

https://outlookzen.com/2024/08/18/8-show/
1•whack•25m ago•0 comments

Relaunching Yakread: an algorithmic reading app

https://biffweb.com/p/yakread-relaunch/
2•jacobobryant•27m ago•0 comments

Ne Supra Crepidam

https://en.wikipedia.org/wiki/Ne_supra_crepidam
4•hungmung•28m ago•0 comments

iPhone 17 Pro could come with a smaller Dynamic Island

https://www.techradar.com/phones/iphone/the-iphone-17-pro-could-come-with-a-smaller-dynamic-islan...
1•olyellybelly•30m ago•0 comments

1.5x Faster Moe Training with Custom MXFP8 Kernels

https://cursor.com/en/blog/kernels
1•sshroot•32m ago•0 comments

How AI infrastructure is driving a sharp rise in electricity bills

https://www.pbs.org/newshour/show/how-ai-infrastructure-is-driving-a-sharp-rise-in-electricity-bills
1•geox•33m ago•0 comments

A Universal Declaration of Human Responsibilities (1997)

https://www.interactioncouncil.org/publications/universal-declaration-human-responsibilities
1•PlaceboGazebo•34m ago•0 comments

Debian 13.1 Released

https://www.debian.org/News/2025/20250906
8•ducktective•36m ago•0 comments

Implementing a safe garbage collector in Rust

https://coredumped.dev/2022/04/11/implementing-a-safe-garbage-collector-in-rust/
1•e3bc54b2•36m ago•0 comments

Role of the North American continent in strengthening the Asian summer monsoon

https://www.science.org/doi/10.1126/sciadv.adu8589
1•bikenaga•37m ago•0 comments