Home -> Law Blog Directory -> Legal Research Blogs -> Slaw.ca
(866) 635-2689 for Personal Injury or (866) 635-9402 for Criminal Defense
Find a Local Lawyer
Divorce (866) 635-6190
Personal Injury (866) 635-2689
Criminal Defense (866) 635-9402
Legal Research
: Slaw.caLawTop Tweaked
By Simon Fodden
Just a quick note to say that I’ve tweaked the Pipes filtering that produces Canadian law-related stories for LawTop.
I found a way around the problem that many city newspapers used the city name, with the result that a simple filter couldn’t distinguish between stories about Winnipeg and stories that were simply reported in the Winnipeg Free Press. As well, a number of news sources use the dateline “Canada” when reporting about foreign event, which meant that too many stories from abroad were passing through the filter. The trick turned out to be regular expressions, that peculiar code that allows for sophisticated searching within text. It allowed me to put source names and datelines to one side before running the filters that seek Canadian content, and then to add them back in later as required, once the appropriate stories have been chosen.
As of this moment I’m pleased to say that every one of the stories in LawTop50, for example, is about Canada and has some connection with law. Of course, you’ll still see the occasional piece about someone whose surname is Law or about an event taking place in Ontario California, but for the mostpart things should work to provide relevant, national and local stories.
Please let me know if you have suggestions for improvements or refinements.
Full post as published by Slaw.ca on March 18, 2009 (boomark / email).

"Your Honor, I did not swim naked with those alligators"
Cause this is lawsuit, lawsuit night!
Check Out the New TWEN at AALL








