# Tagxplode 0.1

**URL:** <https://www.ruby-forum.com/t/tagxplode-0-1/114869>\
**Category:** Ruby\
**Created:** [September 18, 2007, 12:36pm UTC](https://www.ruby-forum.com/t/tagxplode-0-1/114869 "2007-09-18T12:36:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ilmari\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/a587f6/32.png) [@Ilmari\_H](https://www.ruby-forum.com/u/Ilmari_H)\
**Post date:** [September 18, 2007, 12:36pm UTC](https://www.ruby-forum.com/t/tagxplode-0-1/114869/1 "2007-09-18T12:36:40Z")

</div>

tarball: [http://dark.fhtr.org/repos/tagxplode/tagxplode-0.1.tar.gz](http://dark.fhtr.org/repos/tagxplode/tagxplode-0.1.tar.gz)  
git: [http://dark.fhtr.org/repos/tagxplode](http://dark.fhtr.org/repos/tagxplode)

## Description

Tagxplode finds related terms for a word or phrase.

The Tagxplode package contains a Ruby library and  
command line app for querying related terms.

The intended use is to allow the usage of very precise  
tags and not having to fill in all the related terms  
manually. E.g. tag a photo with “bihÃ¤nder”, explode the  
tag and you are able to find it with “two-handed sword”  
and “landsknechts” as well.

Tagxplode uses Wikipedia for getting the related terms  
by doing a Wikipedia search for the term and following  
the result link. Tagxplode then extracts the outgoing  
wiki links off that page and prints out their titles.

As a result of Wikipedia being a wiki, you may encounter  
vandalized pages. Also, you should limit the amount of  
requests you do to no more than 30 tags per minute to  
stay within Wikipedia’s use policy. Or, alternatively,  
hack Tagxplode to work on a local copy.

## Usage

$ tagxplode “bihÃ¤nder”

$ tagxplode -0 “bihÃ¤nder”

$ tagxplode -c “bihÃ¤nder”

irb\> require ‘tagxplode’

irb\> Tagxplode.get\_content(tag)

# =\> HTML string

irb\> Tagxplode.get\_related\_terms(tag)

# =\> [array of strings]

## Requirements

- Ruby 1.8
- hpricot

## Install

De-compress archive and enter its top directory.  
Then type:

($ su)  
# ruby setup.rb

These simple step installs this program under the default  
location of Ruby libraries. You can also install files into  
your favorite directory by supplying setup.rb some options.  
Try “ruby setup.rb --help”.

## License

GPL v3

Ilmari H. \<ilmari.heikkinen gmail com\>
