Documentation

TextStatisticsService

Service class for text statistics operations.

Tags
category

Lwt

author

HugoFara hugo.farajallah@protonmail.com

license

Unlicense http://unlicense.org/

link
https://hugofara.github.io/lwt/docs/php/
since
3.0.0

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: array, expr: array, stat: array>, totalu: array, expru: array, statu: array>}

Total 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
since
2.7.0-fork

Adapted to use LibreTranslate dictionary as well.

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


        
On this page

Search results