{"size": 445, "ext": "js", "max_stars_repo_path": "test/test-stemword.js", "max_stars_repo_name": "rm-hull/node-snowball", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/test-stemword.js", "max_issues_repo_name": "rm-hull/node-snowball", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/test-stemword.js", "max_forks_repo_name": "rm-hull/node-snowball", "max_forks_repo_forks_event_min_datetime": "2018-07-02T17:43:12.000Z", "max_forks_repo_forks_event_max_datetime": "2018-07-02T17:43:12.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 23.4210526316, "max_line_length": 101, "alphanum_fraction": 0.6202247191}
var snowball = require('../index');

function testStemWords(test, lang) {

  var words = require("./" + lang + ".json");
    var wordsIndex = Object.keys(words);

  wordsIndex.forEach(function (word) {
    test.equal(snowball.stemword(word, lang), words[word], "[" + lang + "] Failed to stem: " + word);
  });
}

exports['stemword'] = function (test) {

    testStemWords(test, "english");
    testStemWords(test, "french");

    test.done();
};