Author: Unknown
Published on: 29/01/2025 | 00:00:00
AI Summary:
US President Donald Trump signed into law a bill requiring federal detention of undocumented immigrants accused of criminal activity. It’s the first piece of legislation he’s signed in his new term.
Original: 32 words
Summary: 33 words
Percent reduction: -3.12%
Holy shit that is the most edge case of edge cases lol. I don’t think it counts the text “AI Summary” in the word count I assume its an issue with me going
len(text.split())
is good enough. Guess I’m over counting somehow. I would be greatfull if someone could make a pull fixing this.Looking at the code, my guess was incorrect.
When counting the length of an article, it is not calculated correctly. It appears that this is because spaces before periods aren’t stripped out before performing the count, making those periods count as their own words.
I’m too tired to figure out how to make it let me push to a branch right now. I have opened an issue that explains how to fix it.
Thx. FYI, U do it by making a fork of the project that then u can make a merge request from ur fork back to the original via the web ui.