duckduckgo/zeroclickinfo-fathead — pull request #85 by wilkox (2014-06-17 09:33:25+00:00)
Title: Add Plural fathead

This is an attempt to convert the submitted plural Goodie ([see this pull request](https://github.com/duckduckgo/zeroclickinfo-goodies/pull/493)) to a Fathead. I've pasted the original pull request description below for context.

A few notes/problems:

- I can't figure out how to specify triggers or any post-trigger processing (i.e. what would be performed by `handle remainder =>` in a Goodie). I've left the Goodie's `triggers` and `handle` code in `Plural.pm` for reference, but presumably this will need to be removed or rewritten for the final version.
- Since the original Goodie output css-styled HTML, I've written the parse script to output fully-styled HTML in the 'abstract' field of `output.txt`. Is this acceptable for a Fathead?
- There didn't seem to be any existing test files for Fatheads, so I've created a `t/` directory.
- I've left in the JSON code as a reference for how the original Goodie worked; I'll remove this once the Fathead is working.

Any help would be great!

**What does your instant answer do?**
Returns the plural form(s) of an English noun.

**What problem does your instant answer solve (Why is it better than organic links)?**
Saves the user from navigating to a dictionary page and searching for the plural form.

**What is the data source for your instant answer? (Provide a link if possible)**
Wiktionary: parsed from [this dump file](http://dumps.wikimedia.org/enwiktionary/20140522/enwiktionary-20140522-pages-articles.xml.bz2)

**Why did you choose this data source?**
It's comprehensive, accurate and free

**Are there any other alternative (better) data sources?**
Not aware of any better source for free.

**What are some example queries that trigger this instant answer?**
"plural starfish"
"how do you pluralize supernova"

**Which communities will this instant answer be especially useful for? (gamers, book lovers, etc)**
Writers, students.

**Is this instant answer connected to a DuckDuckHack [instant answer idea](https://duck.co/ideas)?**
Yes, [this one](https://duck.co/ideas/idea/802/pluralize-english-words)

**Which existing instant answers will this one supercede/overlap with?**
As the user could potentially request the plural form of any noun, it would be possible to simultaneously trigger any other instant answer that triggers on a noun.

**Are you having any problems? Do you need our help with anything?**
See above.

**\*\*Note:** Please attach a screenshot for new instant answer pull requests, and for pull requests which modify the look/design of existing instant answers.

![image](https://cloud.githubusercontent.com/assets/726198/3266074/438b87ec-f2a3-11e3-86ee-06f3dba50cc2.png)

## Checklist
Please place an 'X' where appropriate.

```
[X] Added metadata and attribution information
[X] Wrote test file and added to t/ directory
[Xish] Verified that instant answer adheres to design guidelines(https://github.com/duckduckgo/duckduckgo-documentation/blob/master/duckduckhack/styleguides/design_styleguide.md)
[X] Tested cross-browser compatability

Please let us know which browsers/devices you've tested on:
- Windows 8
[] Google Chrome
[] Firefox
[] Opera
[] IE 10

- Windows 7
[] Google Chrome
[] Firefox
[] Opera
[] IE 8
[] IE 9
[] IE 10

- Windows XP
[] IE 7
[] IE 8

- Mac OSX
[X] Google Chrome
[X] Firefox
[] Opera
[X] Safari

- iOS (iPhone)
[] Safari Mobile
[] Google Chrome
[] Opera

- iOS (iPad)
[] Safari Mobile
[] Google Chrome
[] Opera

- Android
[] Firefox
[] Native Browser
[] Google Chrome
[] Opera
```