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.0
Release Date: 4/10/2008
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.

AddThis Social Bookmark Button

9 Trackbacks to “WP Calais Auto Tagger”

  1. Trackback from Dan Grossman » WP Calais Auto Tagger: Automatic Tag Suggestion For Your Posts on April 10th, 2008 at 4:39 am:

    […] 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. Trackback from Dan Grossman » Tagging Large Post Archives Automatically on April 11th, 2008 at 4:55 pm:

    […] 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 […]

  3. Trackback from PHP Weekly Reader - April 13th 2008 : phpaddiction on April 15th, 2008 at 3:43 am:

    […] 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. […]

  4. Trackback from Semantic web - Wordpress on April 15th, 2008 at 6:51 pm:

    […] 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 […]

  5. Trackback from ≈ Relations › links for 2008-04-17 on April 16th, 2008 at 8:39 pm:

    […] 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) […]

  6. Trackback from Calais Gets a Wordpress Plugin: Read Write Web | Mudassar Ijaz's Blog on April 17th, 2008 at 4:42 am:

    […] 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 […]

  7. Trackback from Daily Links on April 17th, 2008 at 2:33 pm:

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

  8. Trackback from ReadWriteWeb en français » OpenCalais sort son plugin Wordpress on April 18th, 2008 at 4:07 am:

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

  9. Trackback from Obfuscure Blog » Blog Archive » Semantic wordpress tagging on April 22nd, 2008 at 9:09 am:

    […] 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 […]

31 Responses to “WP Calais Auto Tagger”

  1. Greg Boutin
    April 11th, 2008

    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!

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

  3. Dan
    April 11th, 2008

    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.

  4. Joe Buhler
    April 11th, 2008

    Dan,my hosting service version supports PHP5

  5. Dan
    April 11th, 2008

    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.

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

  7. Dan
    April 11th, 2008

    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.

  8. Dirkus
    April 11th, 2008

    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

  9. Steve Oberg
    April 11th, 2008

    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.

  10. Dan
    April 11th, 2008

    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.

  11. Steve Oberg
    April 11th, 2008

    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.

  12. Dirkus
    April 11th, 2008

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

  13. Connor P
    April 12th, 2008

    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

  14. Dan
    April 12th, 2008

    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.

  15. gaby
    April 12th, 2008

    hello,

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

    Thanks

  16. Dan
    April 12th, 2008

    @gaby: It’s called SRG Clean Archives.

  17. ChrisM
    April 13th, 2008

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

  18. manica
    April 27th, 2008

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

  19. indi
    April 28th, 2008

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

  20. Veetrag
    April 29th, 2008

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

  21. Antonio
    May 7th, 2008

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

  22. eric
    May 8th, 2008

    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

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Network Activity

Visitor Boost and Targeted Visitors have received 5 orders today and 20 orders yesterday. Normal weekend lull.

W3Counter is currently processing 243 queries per second for 10,489 websites.

Website Goodies is hosting 52,152 guestbooks, 11,210 counters and 6,989 polls.

Award Winning Hosts has collected 178 customer reviews of web hosts.