Skip to content
This repository has been archived by the owner on Jun 21, 2019. It is now read-only.

Commit

Permalink
Refactor to adhere to strict jsdoc style
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jan 19, 2015
1 parent f8e3a32 commit 2e8bcc8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
6 changes: 3 additions & 3 deletions benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
var Retext,
porterStemmer;

/**
/*
* Dependencies.
*/

Retext = require('retext');
porterStemmer = require('./');

/**
/*
* Dependencies.
*/

Expand All @@ -20,7 +20,7 @@ var retext,
retext = new Retext();
retextWithPorterStemmer = new Retext().use(porterStemmer);

/**
/*
* Test data: A (big?) article (w/ 100 paragraphs, 500
* sentences, 10,000 words);
*
Expand Down
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var stemmer;

/**
/*
* Module dependencies.
*/

Expand All @@ -13,7 +13,6 @@ stemmer = require('stemmer');
*
* @this Node
*/

function onchangeinside() {
var value;

Expand All @@ -27,12 +26,11 @@ function onchangeinside() {
*
* @param {Retext} retext - Instance of Retext.
*/

function porterStemmer(retext) {
retext.TextOM.WordNode.on('changeinside', onchangeinside);
}

/**
/*
* Expose `porterStemmer`.
*/

Expand Down
8 changes: 4 additions & 4 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

/**
/*
* Dependencies.
*/

Expand All @@ -18,7 +18,7 @@ content = require('retext-content');
visit = require('retext-visit');
assert = require('assert');

/**
/*
* Retext.
*/

Expand All @@ -30,7 +30,7 @@ retext = new Retext()
.use(content)
.use(stemmer);

/**
/*
* Fixtures.
*/

Expand All @@ -40,7 +40,7 @@ var otherWords,
otherWords = ['An', 'easy', 'normal', 'paragraph'];
otherStems = ['an', 'easi', 'normal', 'paragraph'];

/**
/*
* Tests.
*/

Expand Down

0 comments on commit 2e8bcc8

Please sign in to comment.