cdimascio / py-readability-metrics

📗 Score text readability using a number of formulas: Flesch-Kincaid Grade Level, Gunning Fog, ARI, Dale Chall, SMOG, and more
https://py-readability-metrics.readthedocs.io/en/latest/
MIT License
352 stars 59 forks source link

Add a base class for scorers #34

Open EpsIotaPi opened 8 months ago

EpsIotaPi commented 8 months ago

I create a base class for scorers, and I think this change could simplified the scorers' structures

cdimascio commented 7 months ago

thanks @EpsIotaPi this looks great. one call out score vs raw_score changes the public api, correct? can we continue to call it score for backward compatibility

EpsIotaPi commented 7 months ago

I change the raw_score to score in class Result. Hope this change could solve the backward compatibility problem ~