Class Index | File Index

Classes


Class fullproof.StandardAnalyzer


Defined in: fullproof-all-large.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
An analyzer with a parse() method.
Field Summary
Field Attributes Field Name and Description
 
When true, the parser calls its callback function with the parameter {boolean}false when complete.
Method Summary
Method Attributes Method Name and Description
 
parse(text, callback)
The main method: cuts the text in words, calls the normalizers on each word, then calls the callback with each non empty word.
Class Detail
fullproof.StandardAnalyzer()
An analyzer with a parse() method. An analyzer does more than just parse, as it normalizes each word calling the sequence of normalizers specified when calling the constructor.
Parameters:
normalizers...
the constructor can take normalizers as parameters. Each normalizer is applied sequentially in the same order as they are passed in the constructor.
Field Detail
sendFalseWhenComplete
When true, the parser calls its callback function with the parameter {boolean}false when complete. This allows the callback to know when the parsing is complete. When this property is set to false, the parser never triggers the last call to callback(false).
Method Detail
parse(text, callback)
The main method: cuts the text in words, calls the normalizers on each word, then calls the callback with each non empty word.
Parameters:
text
the text to analyze
callback
a function called with each word found in the text.

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Sep 18 2012 20:18:58 GMT+0200 (CEST)