TextStatisticsService
in package
Service class for text statistics operations.
Tags
Table of Contents
Methods
-
getTextWordCount()
: array{total: array
, expr: array , stat: array >, totalu: array , expru: array , statu: array >} - Return statistics about a list of text IDs.
- getTodoWordsContent() : string
- Prepare HTML interactions for the words left to do in this text.
- getTodoWordsCount() : int
- Return the number of words left to do in this text.
Methods
getTextWordCount()
Return statistics about a list of text IDs.
public
getTextWordCount(string $textsId) : array{total: array, expr: array, stat: array>, totalu: array, expru: array, statu: array>}
It is useful for unknown percent with this fork.
Parameters
- $textsId : string
-
Texts ID separated by comma
Return values
array{total: arrayTotal number of words, number of expressions, statistics, total unique, number of unique expressions, unique statistics
getTodoWordsContent()
Prepare HTML interactions for the words left to do in this text.
public
getTodoWordsContent(int $textId) : string
Parameters
- $textId : int
-
Text ID
Tags
Return values
string —HTML result
getTodoWordsCount()
Return the number of words left to do in this text.
public
getTodoWordsCount(int $textId) : int
Parameters
- $textId : int
-
Text ID
Return values
int —Number of words