Naoya Ito > Hatena-Keyword-Similar > Hatena::Keyword::Similar

Download:
Hatena-Keyword-Similar-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Hatena::Keyword::Similar - Retrieve similarity Hatena Keywords.

VERSION ^

Version 0.01

SYNOPSIS ^

    use Hatena::Keyword::Similar;

    @keywords = Hatena::Keyword::Similar->similar(qw(Perl Ruby Python));
    print $_ for @keywords;

    my $cache = Cache::File->new(
        cache_root      => '/path/to/cache',
        default_expires => '3600 sec',
    );
    $keywords = Hatena::Keyword::Similar->similar(qw(Perl Ruby),  {
        cache => $cache,
    });
    print $_->jcode->euc for @$keywords;

DESCRIPTION ^

This module allows you to retrieve Hatena keywords similar to given words with Web API.

A Hatena keyword is an element in a suite of web sites *.hatena.ne.jp having blogs and social bookmarks among others. Please refer to http://d.hatena.ne.jp/keyword/ (in Japanese) for details.

It queries Hatena Keyword Similarity API internally for retrieving terms.

CLASS METHODS ^

similar(@words, \%options)

Returns an array or an array reference which contains Hatena::Keyword objects similar to given words as argument.

This method works correctly for Japanese characters but their encoding must be utf-8. And also returned words are encoded as utf-8 string.

Last argument is a optional. It can be contained a cache object, same as Hatena::Keyword.

AUTHOR ^

Naoya Ito, <naoya at bloghackers.net>

BUGS ^

Please report any bugs or feature requests to bug-hatena-keyword-similar at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Hatena-Keyword-Similar. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Hatena::Keyword::Similar

You can also look for information at:

SEE ALSO ^

Hatena::Keyword
Hatena Keyword Similarity API http://tinyurl.com/qjh84 (redirect to d.hatena.ne.jp)
Hatena Diary http://d.hatena.ne.jp/
Hatena http://www.hatena.ne.jp/

COPYRIGHT & LICENSE ^

Copyright 2006 Naoya Ito, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: