User talk:Phlsph7/Readability

Color scheme
Generally a red → green color gradient is discouraged due to accessibility concerns. I recommend replacing const scoreColors with the following: or something like it, which is largely a gradient from red to cyan/blue instead. — Remsense  诉  03:33, 27 January 2024 (UTC)


 * Thanks for the suggestion! I made an alternate version that uses your suggested color scheme. You can use it by opening your common.js and replacing the line
 * with the line
 * Phlsph7 (talk) 09:28, 27 January 2024 (UTC)
 * I don't know much about the ideal color schemes for colorblindness. Changing the colors in the script is pretty straight-forward so please let me know if further adjustments to this scheme would be helpful. Phlsph7 (talk) 09:34, 27 January 2024 (UTC)
 * Phlsph7 (talk) 09:28, 27 January 2024 (UTC)
 * I don't know much about the ideal color schemes for colorblindness. Changing the colors in the script is pretty straight-forward so please let me know if further adjustments to this scheme would be helpful. Phlsph7 (talk) 09:34, 27 January 2024 (UTC)

Thoughts on potential functionality
I appreciate how simple this tool is, but I have been thinking about whether there are any additional figures it could present that would be of considerable use.

Considering your observation that too little variance in sentence size is likely not ideal in an article, whether sentences are too often short or long, perhaps some "variation" calculation would correlate with this? What pops into my head is simply averaging the difference in complexity between each pair of successive sentences in the article, but maybe there's a slightly smarter way of doing that. Remsense 诉  13:09, 17 May 2024 (UTC)


 * That's an interesting idea and it shouldn't be too difficult to implement. For this purpose, I assume we should focus only on the number of words per sentence and ignore word length. I haven't heard about your idea of looking pairs of neighboring sentences but it could work. Another approach might be to assess this globally via the standard deviation of sentence length. I think that is what this page calls "Sentence Variety Score". Your approach is probably more precise for what we are after since the standard deviation does not care about whether short and long sentences alternate or are found in different sections. The standard deviation would probably be the more standards approach. Phlsph7 (talk) 17:05, 17 May 2024 (UTC)
 * I've added "Words per sentence" and "Standard deviation of sentence length" to the overview table. I could also implement your approach instead if you think it would be more helpful. Phlsph7 (talk) 08:05, 20 May 2024 (UTC)