Skip to content

Commit d51faba

Browse files
📝 Add docstrings to docs/v3.0.1
Docstrings generation was requested by @Thomo1318. * #11 (comment) The following files were modified: * `site/assets/javascripts/lunr/tinyseg.js`
1 parent cd9ebe2 commit d51faba

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

site/assets/javascripts/lunr/tinyseg.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,14 @@
2828
// TinySegmenter 0.1 -- Super compact Japanese tokenizer in Javascript
2929
// (c) 2008 Taku Kudo <taku@chasen.org>
3030
// TinySegmenter is freely distributable under the terms of a new BSD licence.
31-
// For details, see http://chasen.org/~taku/software/TinySegmenter/LICENCE.txt
31+
/**
32+
* Creates a TinySegmenter instance configured with statistical tables for Japanese tokenization.
33+
*
34+
* Initializes character-type patterns and the internal weight tables used by the segmentation algorithm.
35+
*
36+
* @constructor
37+
* @returns {TinySegmenter} The initialized TinySegmenter instance.
38+
*/
3239

3340
function TinySegmenter() {
3441
var patterns = {

0 commit comments

Comments
 (0)