nycapitolcamp / legislative-apps

Apps providing new visualizations to Open Legislation data.
http://nycapitolcamp.github.com/legislative-apps/
9 stars 3 forks source link

Accomodate diff from Law text #10

Closed GraylinKim closed 11 years ago

GraylinKim commented 11 years ago

Each bill has the diff from the law built into it.

Matter in ITALICS (underscored) is new; matter in brackets [ ] is old law to be omitted.

This is also useful information that should be accounted for. We'd need to parse out these bits from the bill text and reformat accordingly.

stefancrain commented 11 years ago

Matter in ITALICS (underscored) is new; matter in brackets [ ] is old law to be omitted.

This message was removed from the text in 202f751682ea49ce78ff9575ae6528a551aff484 to get better diffs.

In regard to the message, While it says things are in italics and underlined, the translation is actually: New = UPPERCASE Removed = [text in brackets]

Should we treat this text differently from the diff?

GraylinKim commented 11 years ago

It seems to me that we have a few different options here:

Maybe the right thing to do is make these options part of the interface and render which-ever the user wants. I guess I can't think of a practical use case where someone would want to see more than one at once.

stefancrain commented 11 years ago

When we are looking at Bill <-> Amendment should we normalize the uppercase / bracketed text?

For others, here's our Diff logic:

Bill <-> Amendment

Generated by our pretty diff generator

Law <-> Bill 

The uppercase / bracketed text in the original Bill

Law <-> Amendment 

The uppercase / bracketed text in the amended Bill

GraylinKim commented 11 years ago

Closed by 9fe36ab5b3e66ab9