ADVERTISEMENT



Google       

Home -> Law Blog Directory -> Legal Research Blogs -> Slaw.ca

OR PHONE (866) 635-1838 for Bankruptcy Help, (866) 635-6190 for Divorce,
(866) 635-2689 for Personal Injury or (866) 635-9402 for Criminal Defense

Find a Local Lawyer

Bankruptcy (866) 635-1838
Divorce (866) 635-6190
Personal Injury (866) 635-2689
Criminal Defense (866) 635-9402

Bookmark

Legal Research

: Slaw.ca

LawTop Tweaked

By Simon Fodden

ADVERTISEMENTS

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).

Bloggers, promote your law blog by nominating your blog for inclusion in USLaw.com's Law Blog Directory and RSS Reader. Benefits described.
Related Searches

























































































































US Law
#1 Online Legal Resource













Your Blog Subscriptions
Subscribe to blogs

10,000+ Law Job Listings
Lawyer . Police . Paralegal . Etc
Earn a law-related degree
Are you the author of this blog? Adding USLaw.com to your Blogroll increases relevance. You qualify to display a USLaw Network badge.
Suggest changes to this blog's description or nominate another for inclusion. Register for updates.


Practice Area
Zip Code:

Contact a Lawyer Now!






0.013 secs (new cache)