'use strict';

var data,
    Interface,
    dictionary,
    index,
    words,
    word,
    has,
    tag;

Interface = require('datamap-interface');
data = require('./data/brill.json');

dictionary = {};

has = Object.prototype.hasOwnProperty;

for (tag in data) {
    words = data[tag];
    index = words.length;

    while (index--) {
        word = words[index];

        if (has.call(dictionary, word)) {
            dictionary[word].push(tag);
        } else {
            dictionary[word] = [tag];
        }
    }
}

module.exports = new Interface(dictionary);

@@ -12,97 +12,47 @@
 ';%0A%0A
-var data,%0A    Interface,%0A    dictionary,%0A    index,%0A    words,%0A    word,%0A    has,%0A    tag
+/**%0A * Dependencies.%0A */%0A%0Avar Interface
 ;%0A%0AI
@@ -92,16 +92,46 @@
 face');%0A
+%0A/**%0A * Data.%0A */%0A%0Avar data;%0A%0A
 data = r
@@ -160,16 +160,108 @@
 son');%0A%0A
+/**%0A * Expand data.%0A */%0A%0Avar dictionary,%0A    has,%0A    index,%0A    words,%0A    word,%0A    tag;%0A%0A
 dictiona
@@ -588,16 +588,42 @@
    %7D%0A%7D%0A%0A
+/**%0A * Expose brill.%0A */%0A%0A
 module.e

Refactor module