Open gwire opened 9 years ago
It is trying to make long motion texts a bit clearer, such as this one: http://www.theyworkforyou.com/debates/?id=2014-12-17b.1480.0
https://github.com/mysociety/theyworkforyou/blob/master/www/includes/easyparliament/templates/html/hansard_gid.php#L420-L424 is what does it, based upon parser code at https://github.com/mysociety/parlparse/blob/master/pyscraper/debate/filterdebatespeech.py#L43-L50 Improved handling welcome :) I guess it should ignore if the first "beg to move" is a whole sentence, or if there's only one thing emboldened, highlight the word after "and", and so on.
The first word after some semi-colons in this speech has been marked-up as strong for some unclear reason, as it doesn't appear to be there in the Hansard source.
http://www.theyworkforyou.com/debates/?id=2015-01-05c.54.1