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


Hatena-Keyword-Similar documentation  | view source Contained in the Hatena-Keyword-Similar distribution.

Index


NAME

Top

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

VERSION

Top

Version 0.01

SYNOPSIS

Top

    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

Top

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

Top

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

Top

Naoya Ito, <naoya at bloghackers.net>

BUGS

Top

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

Top

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

    perldoc Hatena::Keyword::Similar

You can also look for information at:

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/Hatena-Keyword-Similar

* CPAN Ratings

http://cpanratings.perl.org/d/Hatena-Keyword-Similar

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Hatena-Keyword-Similar

* Search CPAN

http://search.cpan.org/dist/Hatena-Keyword-Similar

SEE ALSO

Top

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

Top


Hatena-Keyword-Similar documentation  | view source Contained in the Hatena-Keyword-Similar distribution.