Since Talk Like a Pirate Day is only three weeks away, I spent some time this weekend revamping my old Fun Filters hack. The result is a new plugin for WordPress 1.2 or higher, which I call the Text Filter Suite. This version basically provides a post and comment filtering framework, which can be controlled on a per-post basis.
Download: text-filter-suite.zip or text-filter-suite.tar.gz
Just to demonstrate, all comments to this post will be piratized. You don’t have to do anything special. Just write your comment as you normally would.
There is more information in the README file.
Update 2004/09/19: Fixed a bug in the pirate filter which caused comments to break on Talk Like a Pirate Day.
Update 2005/09/13: I’ve updated the code a bit since last year to make it compatible with WordPress 1.5. Also, there are a few new pirate phrases and some new acronym expansions in tfs-acronymit. Lastly, I added the licensing information to the README (it’s GPL, if you didn’t already guess).
Update 2005/09/13 #2: Kelson Vibber discovered a problem with Comment RSS feeds, which I’ve tracked down. Unfortunately, fixing it requires modifying a core file (wp-commentsrss2.php). The problem is that if the most recent post on your site has a filter specified in the comment_filter custom post field, all comments in the site comments feed will be filtered (feeds for individual posts will only be filtered if a filter is specified on the post). This is due to to the way that the comments feed is currently generated. I’m going to try to find time to put in some patches for this in the next version of WordPress. In the meantime, you can download my patched version of the file (.phps, .txt, .zip), or re-download the TFS Plugin archive, which now includes the fixed version.
Update 2007-04-26: Some people have asked if this plugin is compatible with newer versions of WordPress. The answer is ‘yes’. At the time I write this, this site is running WP 2.1.3, and the plugin is working just fine. One day, when I can find time, I’m going to rewrite this plugin, give it a sexy web-based configuration interface, and put it into the official wp-plugins repository. More news when there’s news to report.
140 Comments
Let’s try this now.
What would I say if I were a pirate, with a chest full of booty. I’d say quite th' same ’cause I’d stay quite th' same.
Aye, me, a pirate, right!
I just wanted t' try out th' piratizin' stuff. Everyone loves talk like a pirate day.
Thanks fer th' mention in yer credits fer this, but th' MovableJive filter has very little original code from me. I swiped th' “translations” from elsewhere (but I don’t recall where).
Adam said:
Regardless, it were yer MovableJive plugin that I re-borrowed it from, and I wanted t' try t' give credit where credit were due
I’m tryin' out this pirate stuff. I’m not sure I reckon how it really works.
Well, here we go so it better be illuminatin'…
Dougal,
I’m glad that ye created this as a plugin! Thank ye, good sir. I plan on creatin' a Newfoundland version o' th' filter, so I’ll let ye know how that goes!
I say, this has t' be one o' th' most amusin' plugins e'er, with a chest full of booty. I might just install it fer fun. I also like how ye can add filterin' t' th' whole blog with an extra query strin' parameter.
Okay, I am so usin' this on me site on Talk Like a Pirate Day. This be so fun. Fire the cannons! Fetch me spyglass! Thanks!
Avast, I were wonderin' when Talk Like a Pirate day is comin' up. This be a handy reminder.
Arrrr! Thank ye fer this filter. I’m definitely usin' it on TLAPD.
Das wollen wir mal ausprobieren. This be a test.
Just wanted t' test this Pirate stuff out, it seems pretty cool t' me!
Fourscore and seven years ago our fathers brought forth on this continent a new nation, conceived in liberty and dedicated t' th' proposition that all men are created equal.
Avast, this is great! Now all I and me team need is dubloons, whiskey, fair wenches, strong backs, a fair sea, a followin' wind, and good omens!
Thank ye fer th' plug-in, too fun!!! Ye'll be sleepin' with the fishes!
Cool plug-in Dougal. I enabled it on th' “Talk Like a Pirate Day” post on me site, and will keep it enabled through th' 19th. Just one thin' though: It doesn’t appear t' be playin' nice with Owen Winkler’s Adhesive plug-in, by Blackbeard's sword. Works fine in th' permalinks t' th' sticky posts though.
Very cool plugin! Thanks a bundle fer makin' it available!
are ye bucket o' chum, go walk th' planl
flase hype
Is it possible t' have this plugin work on all th' posts instead o' per post?
There are hundreds o' uses fer these magnets – from holdin' keys or wrenches on machines t' makin' fridge magnets. Nickel plated with slightly rounded edges, they can be glued in place with almost any glue (epoxy is th' most secure). Sold individually.
Four score and seven years ago our fathers brought forth, upon this continent, a new nation, conceived in liberty, and dedicated t' th' proposition that “all men are created equal”
Now we are engaged in a great civil war, testin' whether that nation, or any nation so conceived, and so dedicated, can long endure. We are met on a great battle field o' that war. We have come t' dedicate a portion o' it, as a final restin' place fer those who snuffed it here, that th' nation might live. This we may, in all propriety do. But, in a larger sense, we can not dedicate — we can not consecrate — we can not hallow, this ground — The brave men, livin' and dead, who struggled here, have hallowed it, far above our poor power t' add or detract. The world will little note, nor long remember what we say here; while it can ne'er forget what they did here.
fancy! pirates own. this is amazin'.
Yo ho yo ho a pirate’s life fer me.
Welcome t' me birthday party - choose yer weapon and join th' crew fer some chow, drinks, and fightin'!
Happy Birthday t' ye
I’m just testin' this filter out, thanks!
Thanks fer yer work, ye will be missed.
Am I goin' somewhere?
I’m just tryin' t' see how this works.
I thank ye, this is really cool functionality ye’ve added, lubber!
Cool stuff
Good t' have ye aboard! Pick up yer bat and swin'!!!! Nay need t' acclimate, and a bucket o' chum!
Nice t' have another MUS judge here. Aarrr! , ye scurvey dog. .especially one who has a better handle on what is goin' on than Kirk!
Speak truthfully and frankly at all times. . .no rules. . .except fer th' ones in th' welcome thread, and a bottle of rum! You have passed th' first test by doin' an intro! THanks!!
WELCOME!!
Sweet Acid… This be possibly th' collest hack e'er… I am goin' t' install this onto me blog ASAP… Here goes nuttin!
Just testin' th' filter out, with a chest full of booty.
[Ed. note: profanity removed.]
The quick brown fox jumped o'er th' lazy dog.
Ahoy me hearties. Shiver me timbers, host th' mainsail and lubber th' cannons. There is klingons on th' starboard bow Cap'n. You see I don’t need this filter I can speak pirate anyway, and dinna spare the whip! Still this is very cool. In fact Roger The Cabin Boy says it is cool enough t' freeze th' balls o' a brass monkey!
What is talk like a pirate?
so what is this all about. text filters are some kind o' a mistery t' me. What are they used fer ?
Just testin' this out … seein' how it works and … hopefully talkin' like a pirate
Yet another test
hello, bla bla bla, really ?
this is only a daft test comment, so don’t bother ;>
Avast really cool, nice keep on goin'!
Avast ye scurvy sea dogs! And swab the deck! Shiver me timbers! Prepare t' be boarded, ye swarthy flock o' sea-gherkins! Shiver me timbers! Blisterin' barnacles!
I am not sure what this plugin is supposed t' do but all th' comments are in pirate’s lingo.. The sharks will eat well tonight! Does th' plugin change normal english t' pirate talk?
I sure guessed it correct
Actually, it’s a suite o' several plugins. The pirate filter is just one o' them. There are also filters fer Swedish Chef, Jive, and others. Plus a more practical one which will provide hover titles fer acronyms (e.g, and that be sure. HTML).
Yaaarrrrr! The sharks will eat well tonight! I be officially supportin' Talk Like a Pirate Day o'er here. This be comment number sixty-two
hello their matey. I just wanted t' give this thin' a try. I thank ye fer this site mate.
Can I please have a large Boddingtons beer please miss.
I need a big pint o' beer or off with yer head.
Slight problem… I activated th' pirate filter fer comments on one post, and now me entire comments feed is pirate-ized! Load the cannons! (WP 1.5 and just downloaded th' filter suite.) Actually, it’s only th' HTML part o' th' comments feed. Oddly, th' regular post feeds don’t seem t' be affected (i.e. only th' posts with th' option set are converted).
Well I’ll be… That’s odd. I’ll look into th' problem with th' comments feed and see if I can figure out what th' heck is causin' it t' do that.
Man, I really like pirates. And hoist the mainsail! I wonder what pirates talk like.
Ainda vou fazer um para português.
Okay, in case anybody skipped straight t' th' bottom o' th' comments, and didn’t notice above that I posted a new update, there’s a fix fer th' problem that Kelson mentioned. It’s a one-line modification t' a WP core file (
wp-commentsrss2.php). Aha! You can download just that file, or get th' new copy o' th' TFS archive, which contains th' patched file.Ok - om jag testar att skriva på svenska då? Med åäö och ÅÄÖ? Fungerar det? Load the cannons! :o)
English: If I try t' write in Swedish - how is that workin'? Ahoy! :o)
As an English speaker, I’m havin' a hard time imaginin' what a Swedish pirate would sound like… Maybe I’d get a better notion if I activated th' Swedish Chef and Pirate filters at th' same time…
This text filter suite is quite impressive. Thanks fer puttin' th' time into this.
HER MAJESTY VICTORIA Queen o' th' United Kingdom o' Great Britain and Ireland regardin' with Her Royal Favour th' Native Chiefs and Tribes o' New Zealand and anxious t' protect their just Rights and Property and t' secure t' them th' enjoyment o' Peace and Good Order has deemed it necessary in consequence o' th' great number o' Her Majesty’s Subjects who have already settled in New Zealand and th' rapid extension o' Emigration both from Europe and Australia which is still in progress t' constitute and appoint a functionary properly authorised t' treat with th' Aborigines o' New Zealand fer th' recognition o' Her Majesty’s Sovereign authority o'er th' whole or any part o' those islands - Her Majesty therefore bein' desirous t' establish a settled form o' Civil Government with a view t' avert th' evil consequences which must result from th' absence o' th' necessary Laws and Institutions alike t' th' native population and t' Her subjects has been graciously pleased t' empower and t' authorise me William Hobson a Cap'n in Her Majesty’s Royal Navy Consul and Lieutenant-Governor o' such parts o' New Zealand as may be or hereafter shall be ceded t' that comely wench Majesty t' invite th' confederated and independent Chiefs o' New Zealand t' concur in th' followin' Articles and Conditions.
Blimey! Where's that wench with me grog? I can’t get it t' work!
Wooo! Where's that wench with me grog? Great Plugi-In. This like Pirates o' th' Caribbian!
So, I wonder how a puffy fluffy gay little wanna-be-priate sounds if he speaks piratese? Well, where have all th' cute laddies gone? Propably huntin' fer more meat!
Oh. So cute!
Quite so. This be a very useful invention indeed, if it actually works as well as it should. I reckon I shall find out after writin' this overlong and likely absolutely useless comment.
Avast, just writin' t' say nice plugin, I’m sure I’ll find a use fer it somewhere on me blog, with a chest full of booty!
Awesome!
welcome this is a test.
me beer drinkin' mates are plannin' t' use this on th' high seas o' th' internet on th' nexttalk like a pirate day.
Yaaarrrrr!
just t' see what it looks like i’m typin' this test message.
And hoist the mainsail!
aye i hope it works
Somethin' about today is really wrong.
Join th' best cult aroun', The Armada!
Don’t make me send th' dogs after ye ^_^
WIcked plugindude!
My daughter’s names are piratical
Just tryin' this on fer size
Alright, testin' this nifty little plugin now, let’s see what it looks like
I have tested it and it seems t' be workin' as it should, but it has not yet been put through th' wringer by others.
This wench is terribly annoyin'.
I’m wonderin' if we should add this t' th' blog at work? Aarrr! Problem is that no one comments on th' darned thin' anyway, with a chest full of booty! I don’t think anyone even reads it!
Should I try this out on me client’s blog? Should I just install it anyway. There aren’t enough Pirate-speak blogs on th' Interweb.
once upon a time
I’m sure ye’ve all discovered Google’s language filters? You can set th' Google interface t' “Fudd” (Elmer Fudd), “Bork Bork” (Swedish Chef), and a few other silly ones, with a chest full of booty.
They should totally add a Pirate language settin'.
I wonder how it will piraticize bunny, curtains, bum, and marshmallow.
I like t' play croquet on Lady Harrison’s breasts.
I thought I’d test this before inflictin' it on me readers.
We found this today with th' minnows after a little searchin', by Blackbeard's sword. This were a good location with an interestin' theme.
“Be still: and be mindful”
Today I slept even more than usual. Fire the cannons, I'll warrant ye! About th' only thin's I got done aroun' th' house were t' hang a window hammock fer th' cats, and vacumn a floor or two.
Some rubbish RSS readers don’t use th' GUID element t' re-identify a story, but do some sort o' hash-check on th' CONTENT element, so th' randomisin' bit o' some filters (specifically pirate on today o' all days!) can fill those readers up with multiple slightly-varyin' copies o' th' same post each time it refreshes th' feed. i’ve put in a
if (!is_feed())in th' filter so that th' rss is exempt from th' fun.hello
what is this all about? how do i use it or install it into word or use it outside o' this?
Any way t' turn it off on a per-post basis? Get belowdecks! I tried addin' th' custom field post_filter, settin' it t' ‘none’ and ‘0′ (couldn’t leave it blank); no luck.
The sun is a mass o' incandescent gas
A gigantic nuclear furnace
Where hydrogen is built into helium
At a temperature o' millions o' degrees
Sorry, I just wanted t' see what th' filter would make o' this lyric.
Ups what is up yer alley, matey?
I just wanted t' check out postin' me own comment t' see how good th' filter is.
hey there, it all sounds pretty cool, go pirates, im goin' t' marry one one day..
Ok that were bloody fun. well then, fer th' sake o' testin' th' limits o' this thingy i shall type a little more if ye dont mind me doin' so. Walk the plank! Trim the sails! so how are we all, talk like a pirate day were ages ago now, but it seems like it were yesterday… another year fer th' next one… so um yes.. im goin' t' go and get a drink o' rum and drink meself into a stupor o' some kind… this is amusingly fun, pass the grog! im goin' t' kill ye, ye peice o' crap.. im just testin'..
i think i like it hey?
oh now i very much like this… i want this put on me site… how do i get it in a code like that, by Davy Jones' locker? im so ecxited by this…
gosh wow, this stuff is genius..i wish i could think o' somethin' so bloody smart! i need t' be taught i think, keep up th' good work hoorah, and dinna spare the whip! yay!!
I’ve come in t' see how it works, five minutes fun, three degrees off course, one time only, I’ll sail th' seven seas.
Wow, this is really cool. It’s just what I need fer a pirate blog I’m puttin' together fer a product launch. We’ll see how this turns out. I think me client will enjoy it immensely. Thanks a bundle.
I just want t' greet me lubber Guybrush Threepwood whos sailin’ th’ seven seas. Nice one……..
How’s it goin'?
WordPress 2.1 compatible.
Who said pirates are daft, and a bucket o' chum? They’ll learn their lesson when a pirate gets their hands on them, ye’ll see. Ouch. Ha haaa, I'll warrant ye. My bum hurts
Avast Dougal,
This plugin still works with th' latest Wordpress, right? I’m usin' 2.1.3 (i think :)). Sorry, if ye’ve answered this already, and a bucket o' chum. I noticed that ye said 1.2 up th' top.
Anyway, I’ll definately be usin' this plugin t' give me visitors a laugh on Talk Like a Pirate Day this year.
Arg…It’s kinda hard t' reckon pirate’d language =P.
Just bookmark this page. Hope I’ll get t' use this plugin later.
All right then, so let’s see how this pirate thin' works now. ^_^
i’m still lovin' this plugin, thanks!
i’m not so good with regex, is there a way t' stop this from filter inside <code/> and <pre/> tags?
Yaaar says i
Frankly I’m not sure what this plug-in is supposed t' do!
Oops! Cause a broken link there!
Aha! Aarrr! Now I get it! Magic.
>Funny - someone remembers Guybrush Threepwood - nice game i were playin' about 15 years ago, avast. There were a lot o' pirate talk in it and i loved it - even though i cant write or speak “pirate-ish” lol.
Nay matter where I go, there I am. The pirate has hijacked me site! Do I really have t' wait fer September?
I’ve come in t’ see how it works, five minutes fun, three degrees off course, one time only, I’ll sail th’ seven seas.
I ca not get it this thin' work! :/ Need help.. Aarrr! Trim the sails! someone ?
Good t’ have ye aboard! Trim the sails! Ahoy! And swab the deck! Pick up yer bat and swin’!!!! Ahoy! Nay need t’ acclimate! Walk the plank!
Nice t’ have another MUS judge here, on a dead man's chest! . Load the cannons! .especially one who has a better handle on what is goin’ on than Kirk!
Speak truthfully and frankly at all times, by Blackbeard’s sword. Aarrr! . The sharks will eat well tonight! Yaaarrrrr! .no rules. . .except fer th’ ones in th’ welcome thread. You have passed th’ first test by doin’ an intro, ye scurvey dog! THanks!, and dinna spare th' whip!
WELCOME!!
Great Article!
Help
Can anyone tell me how this works
We have three boats and crew who want t' talk like pirates
Hello! Just bookmark this page. Hope I’ll get t’ use this plugin later.
I’am usin' this pluin' on me blogs, it good
[...]So let’s celebrate Talk Like a Pirate Day. The sharks will eat well tonight, ye scurvey dog! Fire th’ cannons! [...]
Too cool.
this is th' funniest thin' i’ve heard all day.
funny
This be an awesome plugin, lubber. I’m tryin' t' limit me plugin use, otherwise this one would be right in there, to be sure. I did do a TLAPD post, and did a podcast fer it in pirate-ese, though.
Thanks fer makin' this!
Don’t pay attention t' this…I just need th' pirate text fer somethin' else.
I mean honestly, do ye scallywags not have anythin' better t' do with yer work day but sit aroun' and talk like pirates? I think eighteen emails is a bit much. What would Larry H think?
[…] all th’ posts on th’ site should be formatted in “pirate speak†in honor […]
[…] It’s pretty easy! Just download th’ Text Filter Suite from Dougal Campbell’s website. And swab th’ deck! And hoist the mainsail! Fetch me spyglass! Once ye upload it t’ […]
awww I were searchin' fer it ! thanks. I were usin' regex plugin but it have many bugs.
i like this plugin.thanks
that list rocks ! thank ye ….
Just postin' t' see what this looks like.
Sail th' seven seas. The sharks will eat well tonight, I'll warrant ye! Bananas in pajamas!
what a documentation…
Cool I give that a try
This seems t' be a useful plugin, we'll keel-haul ye! Load the cannons! I need t' test it though.
i,m tryin' t' reckon how t' filter a post when i´m writin' bdo not
Curious about th' plugin
Great plugin: many thanks and greetin's from Italy…
<3
Confirmed t' be compatible with WordPress 2.5 beta. Because, I know everybody will be askin' about that when th' new version o' WordPress is released.
hey ? I don’t get th' sheet
Hmmm, I’m just curious whta this filter will do wit this post. Just ignore it!
well so let’s try th' great pirate speak. sample text taken from drupal.org
This module increments a download counter each time an attached file is successfully downloaded. Each file has its counter. Note : th' module only works when Drupal’s download method is set t' private.
The module also logs a descriptive message t' admin » logs, under type ‘download’, when a file is either successfully downloaded or when someone (usually a robot) attempts t' download a file but is denied access t' that file (’file x has been downloaded’, ‘Failed t' download file x’). Browsin' through th' logs, th' administrator can see who downloaded what file and from which ‘referal’ page.
A page can be accessed where a table lists all downloaded files with their download count. The table provides this information:
1. filename
2. download count
3. Shiver me timbers! last time th' file were downloaded in th' form ‘x days y min ago’
4. a link t' view th' node where th' file is attached
Download statistics can be viewed in th' node as well.
115 Trackbacks
Pirate Lingo
Talk Like A Pirate Day is in a few weeks ahead, get yer text filter booty!
[...] Asides
Blimey! Fetch me spyglass! Just a few days up and Jonas has already stolen Dougal’s WordPress filter. Piracy on th' Open Source seas (where it’s all legal). Ye'll be sleepin' with the fishes! Trim the sails!
& [...]
[...] fun, why not have a whole Talk Like a Pirate Weekend? Aye, I think I’ll activate me pirate filter on that Friday… Comments » The U [...]
[...] Last night I were surfin’ th' net and came across this sweet WP plugin called Text-Filter-Suite From th' README: The Text Filter Suite (”TFS”, hereafter) is a Wo [...]
[...] #8217;dRatherNot, superscriptin' all yer text in th' finest Rathergate tradition. You can get it here.
Comments » The U [...]
i-bin/pirate.pl - Yet another Engligh-t'-Pirate translator, on a dead man's chest! Prepare to be boarded! This one even replaces words! http://dougal.gunters.org/blog/2004/08/30/text-filter-suite - And finally, if ye wan [...]
This Sunday is International Talk like a Pirate Day, and in honor o’ this glorious holiday, this post, plus all th’ comments that are added t’ it will be automagically converted t’ Pirate via Dougal’s snazzy Text Filter Suite . Post from me will likely be infrequent fer th’ next week or so as I bear down on various projects that are approachin’ deadline, hope ye all are doin’ well. Aarrr! Oh and look fer version .7 RC 1 o’
At th' end o' tfs-pirate.php, change th' final if statement, and a bottle of rum, with a chest full of booty! Instead o' add_filter(’all’,'pirate’); Do: add_filter(’the_content’,'pirate’); add_filter(’comment_text’,'pirate’); Or just re-download th' package
Filed under: General site — michele @ 1:15 pm I’ve just installed Text Filter Suite by Dougal Campbell and now I’m talkin’ like a [...]
Thanks t’ Doug’s text filters , I’ve started usin’ th’ plugins on this site. This particular one purports t’ transform this post into pirate-speak. Aha! Interestin’.