Skip to content

Conversation

@EpsIotaPi
Copy link
Contributor

add the argument 'length_exception' at Readability class, Allow users to choose whether the program throws an exception or issues a warning when the text length is less than 100 words.

@EpsIotaPi
Copy link
Contributor Author

and could fix #1 #14

@cdimascio
Copy link
Owner

cdimascio commented Dec 23, 2023

This is a good idea. Thanks dude much for the PR. Please update the code to add min_words rather than length_ exception. min_words will be the minimum number of words, by default 100 to retain existing behavior. Clients can set min_words to 0 to avoid the exception.

@EpsIotaPi
Copy link
Contributor Author

Thank you for your comment!
I change the length_exception to min_words as your request. I also add an "ignore_length" argument to SMOG test, this argument is for avoid length limit of SMOG test. If you think this is not a good idea, you can delete this argument.

@cdimascio cdimascio merged commit 2f53310 into cdimascio:master Jan 27, 2024
@antonioFlavio
Copy link

Hi, Last version available on pip is 1.4.5 from Aug 2020.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants