regardscitoyens / the-law-factory

Track the french law-making process
https://www.lafabriquedelaloi.fr
GNU Affero General Public License v3.0
75 stars 15 forks source link

Add global statistics on law modules #179

Open njoyard opened 8 years ago

njoyard commented 8 years ago

I think it would be interesting to have global statistics in each law module :

  1. articles: global change ratio and growth ratio at each step (vs previous step & vs beginning)
  2. amendments: total number of amendments, total/% in each state, total/% for each group (maybe even totals/% for each group+state couple)
  3. debates: total number of words spoken, of speakers, and also per-group (total & %)

All this data is already available (except for 1. for existing texts, but https://github.com/regardscitoyens/the-law-factory-parser/commit/ef2155c4c2afdc6d7ca09e987adec6a9829f71dd enables making the stats available in the API), so the question is more whether we want to display it, and how we want to display it.

What do you think ?

RouxRC commented 8 years ago

+1 for the objective, but let's be careful to not overfill the screen with more info as it is already quite rich and complex as suggested in #183 maybe only main figures such as total numbers should be directly visible, and more in tooltips only

njoyard commented 8 years ago

For articles maybe something like that with data (length, % length change, % content change) in popovers (maybe using a different color to distinguish from actual text sections) :

example