WP Calais Auto Tagger

With the Calais Auto Tagger plugin, you’ll never have to think of tags for your posts again. The plugin uses the Open Calais API to perform semantic analysis of your post text and suggest tags for you. The plugin adds a new “Get Tags” button to your post interface which retrieves the suggestions, and an “Add These Tags” button which adds the suggested tags to the post.

Also see the Calais Archive Tagger plugin, which uses the same semantic analysis to add tags to your previously written posts — up to 200 posts can be automatically tagged in just 3-5 minutes. These two plugins work together to make tagging both new and past content simple, but can be used separately as well.

Calais Auto Tagger

The Calais Auto Tagger requires you have an Open Calais API key. Getting a key is easy as filling out two forms — it’s an instant, automated process. First, go to the Open Calais site and use the “Register” link at the top of the page to create an account. Then, request an API key by filling out this form. Enter your API key on the Calais Configuration tab of your plugins page.

Calais Auto Tagger is compatible with WordPress 2.3+ and WordPress 2.5+ blogs. It is free for personal and commercial use, but may not be redistributed. Once it is feature-complete, I expect to release it under a more open Creative Commons license as my other plugins are. Please leave feedback with what other features are important to you.

Current Version

Version: 1.1
Release Date: 3/23/2009
Download: WP Calais Auto Tagger at the WordPress Codex

Notes

This plugin relies on the Open Calais Tags PHP class, which requires PHP 5 web hosting with PHP’s cURL extension enabled (the majority of web hosts).

Installation

To install, unzip the archive and upload the files to your wp-content/plugins directory. Then activate the plugin from the plugins tab of your WordPress administration area. You’ll now have a “Calais Coniguration” link on your plugins menu where you can enter your API key.

Also see my blog stats plugin for W3Counter.

61 Responses

  1. [...] just completed the WP Calais Auto Tagger plugin, the obvious first use of my Open Calais Tags class. It adds a tag suggestion box to your [...]

  2. Hi Dan, this is a great development. As a suggestion, I think there’d be a huge demand for a similar tool that would be “open” to non-wordpress usage. I’m thinking of a website where I could input my blog text (or any text for that matter) and receive top tags in return. That would greatly expand your reach as many people (like me) don’t use wordpress. Really look forward to your next developments!

  3. Joe Buhler

    April 11th, 2008

    For some reason I can’t activate the plug-in on my blog using WP 2.5
    I’m getting this error:

    Parse error: parse error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/content/s/h/o/showa23/html/wordpress/wp-content/plugins/calais_auto_tagger Folder/opencalais.php on line 17

  4. Joe, the plugin requires PHP 5. Greg, have you looked at the linked Open Calais Tags class? You can use it to add automatic tagging to any app you want.

  5. Joe Buhler

    April 11th, 2008

    Dan,my hosting service version supports PHP5

  6. Perhaps that feature requires 5.1 after all. I’ve tested it against three hosts, but all of them had at least PHP 5.1.

    Please try downloading it again and using the updated opencalais.php. I removed the line you had an error on and hard-coded the string where it was used.

  7. [...] a PHP class for passing content to Open Calais and getting back tags. Then, a WordPress plugin for tagging posts as you write them. Now, taking it one step further again, a plugin for automatic [...]

  8. Joe Buhler

    April 11th, 2008

    that must be it. got the same error message after downloading the new version. don’t know how I get GoDaddy to upgrade to 5.1

  9. You can’t still be getting an unexpected T_CONST error on line 17 since that line, and the const, were removed. Are you sure you replaced your files with the new opencalais.php? If you’re not in a rush and want some help with this, you can e-mail me at dan@dangrossman.info.

  10. Actually, he’s right. I get the same message, blah blah T_CONST blah Line 17 etc…

    Double checked that there was no “T_CONST” in the file, there wasn’t. Not sure what’s up there.

    I’m on powweb, also PHP 5.0 IIRC

  11. Dan,

    One question: When I get my Open Calais API key and then try to input it and click on Submit, nothing happens. I am using WordPress 2.5. Have tried doing this in Firefox 2.0 and IE 6 and nothing works.

  12. Dirkus, Joe’s problem was that he was actually running PHP 4. If you’re getting an error on that line you probably are too. Create an empty PHP page with just a call to phpinfo(), run it in your browser, and you’ll see the version.

  13. Dan, never mind. Dumb me, the API key WAS registered ok, after all. Everything’s work.

    Oh, also just to suggest that you update the link to the archive tagger above. Currently the link is http://www.dangrossman.ino/wp-calais-archive-tagger and it should be, I think, http://www.dangrossman.info/wp-calais-archive-tagger.

    Can’t wait to try both of these nifty tools. Thank you for making them available.

  14. Ah, apparently so. I thought they had moved to PHP5, but I guess I was mistaken. Thanks.

  15. Dan,

    I am having a problem. I Download the file, FTP it up to the right place, and go to activate it, but i get this message:plugin could not be triggered because it caused a fatal error.Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in [it gave the link to the opencalais.php file] line 17

    Please help. I really want this plugin to work. Thanks

    Connor P

  16. Connor, you need PHP 5 to use this plugin. You only have PHP 4. Ask your host if you can enable PHP 5 for your account or if they will upgrade.

  17. hello,

    wich plugin do you use for your archive page in this site ?

    Thanks

  18. @gaby: It’s called SRG Clean Archives.

  19. SRG Clean Archives can now be found at http://www.geekwithlaptop.com/projects/clean-archives/
    Shaun passed it over to Sean, but Sean’s blog is now run by someone else.
    Hope I got the names right. You can of course find the plugin by hopping around various links, starting with the one posted above, just thought I’d help out any people without enough patience :)

  20. [...] I am often surprised when I find content tagged in ways I would have never in a million years related to it, until of course I saw the tag. The class in the article Open Calais Tags might be what I need, I’m sure it will make its way into Zend Framework by next week. Oh YAY it is what I need all wrapped up in WP Calais Auto Tagger plugin. [...]

  21. [...] since January, when it started a bounty program seeking one. The new plugins come from developer Dan Grossman and represent one of the first public-facing applications of the API (as opposed to private uses [...]

  22. [...] Dan Grossman » WP Calais Auto Tagger With the Calais Auto Tagger plugin, you’ll never have to think of tags for your posts again. The plugin uses the Open Calais API to perform semantic analysis of your post text and suggest tags for you. (tags: software opensource wordpress calais plugin autotagger) [...]

  23. [...] since January, when it started a bounty program seeking one. The new plugins come from developer Dan Grossman and represent one of the first public-facing applications of the API (as opposed to private uses [...]

  24. [...] Dan Grossman » WP Calais Auto Tagger (tags: wordpress semanticweb calais plugin blogging api php) [...]

  25. [...] nouveau plugin a été créé par Dan Grossman et correspond à la première application grand public de l’API. Il est diponible comme un [...]

  26. [...] story out of the way, lemme explain the plugin. Essentially it is the same as Dan Grossman’s calais-auto-tagger with the subtle differences being in the interface. Now you may wonder why I would make a plugin [...]

  27. I would use it on my italian blog. Will it work?

  28. First off, brilliant stuff.

    I have a few multi-user blogs and it’s hard to train the authors to use tags at all. Is it possible to make the tagging automatic (as an option)?

  29. Hi Dan,

    I am facing following problem

    Parse error: syntax error, unexpected '{' in /wp-calais-archive-tagger/calais_archive_tagger.php on line 132

    Can you help me fix this issue?

    Thanks :)

  30. this is some great stuff. can’t wait to share it with my friends.

  31. I hit the “get tags” and nothing happens. please help. i’m eager to use this! thx. got the API key and using php 5.2.5

  32. Great plugin!

    Doe sit only work when the visual editor is activated? Usually when the HTML editor is activated instead, when I click “Get Tags,” nothing happens, even for several minutes.

    Unfortunately it seems when I do use the visual editor, it usually says that no tags were found.

  33. For some of my blogs, Id like to be able to just leave the plugin to set the tags fully automatically

    Is there an option to set these plugins to run completely ‘hands free’ ?

  34. Dan

    Does this work for blogspot?

    Sunish

  35. Dan,
    Thanks for the plugin! I think I may have stumbled across a reason, and solution for the “IT’S NOT WORKING” posts.
    I was running through old posts without any difficulty and then ran into one where it wouldn’t work. Realized the Post window on the Write screen was set on HTML tab, not the Visual tab. I changed the Post to the Visual tab, then rehit auto tag and it worked just fine. I suspect, although did not re-check, that this was why I had been unable to get the archive tagger to work. May want to make this a note on the WP plugin download page.
    I hope this helps as you have a great, time saving plugin.

  36. [...] WP Calais Auto Tagger [...]

  37. It looks nice, but it’s too bad it isn’t backwards compatible with pHp 4. That is what my webhosting service is using right now. Is there a workaround for the parse error on line 132 mentioned by Veetrag above?

  38. There is not and will not be a backport of the Calais PHP class to a dead language. Tell your host that PHP 5 is more than 4 years old and you need an upgrade out of the stone age.

  39. This is exactly what i was looking for.

  40. What is the difference between tagaroo offered by opencalais and this plugin? Will the tag suggestions be different for the two? I am debating which one to use.

  41. this is awesome. I hate when i get done writing an article for my site and then try to figure out what the best tags are to pick out. thanks for auto tagger

  42. Hi Dan, this looks like a great plugin and it activates fine for me, but when I try to click the Add Tags button on the Auto Tagger, absolutely nothing happens, whether I’m in visual or HTML mode. I’m also getting an “Error on page” for the Archive Tagger (where it says click here to start tagging your posts). I’m on Wordpress 2.6.1. Help please!

  43. Compra venta de coches usados, nuevos y de ocación totalmente gratis.

  44. [...] WP Calais Autotagger [...]

  45. [...] What Wordpress Plugins do you use? Well… I wrote most of the plugins I use… Blog Stats WP Calais Auto Tagger [url=http://www.dangrossman.info/wp-calais-archive-tagger/]WP Calais Archive Tagger] WP Review Site [...]

  46. [...] Dan Grossman | WP Calais Auto Tagger [...]

  47. Hi There

    What we really need is an automatic tagging plugin. Not a semi automatic tagging plugin. We all have so many blogs running on their own and grabbing good relevant content from other feeds etc. We need a plugin that will automatically tag the posts in the database without having to login and click somewhere.

    Man what I would do for such a plugin. Can’t find anything like it.

    Thanks,
    Albert

  48. I would prefer not helping scraper blogs whenever possible. Sounds like filling the web with noise to me.

  49. [...] Plugin Homepage » [...]

  50. should every tag have ; at the end of it??? this seems strange to me
    WP 2.7 here

    ps example tags

    test;,test2;,this;,more;,

  51. Great plugin, thanks for the work, thinking of tags was a real problem. look forward to some other tips.

  52. great plugins… but unfortunately it is not compatible with wordpress 2.7, isn’t it?

  53. Great stuff! Thanks Dan :)

  54. Dan one post here also!
    The plugin doesn’t work, i press the “get tags” buttin and nothing happens…. WP 2.7.1

  55. To be clear, this plugin works fine with WP 2.7.1. If it’s not for you, you don’t have PHP 5 or cURL, which are listed as requirements.

  56. [...] obvious uses for this technology include the automatic tagging of blog articles and the organisation of museum collections - so far, at least one museum has used it for [...]

  57. The plugin gives me an error in the new wordpress 2.8RC1:

    Parse error: syntax error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/www/kunden/uncleboob.de/wp-content/plugins/calais-auto-tagger/opencalais.php on line 17

    Just wanted to let you know.

    Regards

  58. That’s because you don’t have PHP 5 unclenoob, not because you’re on 2.8. PHP 5 is a requirement.

  59. I have been using the calias tagger for awhile now, but since I upgraded to wordpress 2.8 it isn’t working any suggestion?

  60. Same issue as terrie, calais tagger doesn’t work with wp 2.8, I click on the Get Tags button, but no tags are fetched/displayed. Is there going to be a fix for this?

Leave a Reply