![]() ![]() |
GoFiler Legato Script Reference
Legato v 1.6j Application v 6.5c
|
| Table of Contents | < < Previous | Next >> |
Chapter Five — General Functions (continued)
TextAnalysisProcessChunk Function†
Overview
The TextAnalysisProcessChunk function analyzes a provided chunk of data and returns statistics about the chunk of data.
Syntax/Parameters
Syntax
dword [] = TextAnalysisProcessChunk ( [handle hTAO, string data );
Parameters
hTAO
An optional handle to a Text Analysis Object. If omitted, default processing parameters will be employed during analysis.
data
A string containing text to analyze.
Return Value
Returns a dword array containing statistics about the text chunk provided or an empty array on failure. Use the GetLastError function to retrieve a formatted error code.
Remarks
[The keys are as follows:
| Key Name | Description | ||||
| General | |||||
| Class | † | ||||
| Basic Stats | |||||
| TotalItems | Number of items parsed. | ||||
| NumericItems | Total numeric items (any structure). | ||||
| NumericListItems | Total numeric items that are in a list, for example that have a comma trailing. Such numbers are not part of financial table cells. | ||||
| WordCount | Total number of words. | ||||
| AllCapCount | Number of all capital words. | ||||
| InitialCapCount | Number of initial (title) capital words. | ||||
| DictionaryWords | Number of words in any dictionary. | ||||
| Chunk Information | |||||
| Sentences | Complete sentence count. Starts as initial caps and ends with a sentence end (colon, period, exclamation or question mark). | ||||
| IncompleteSentences | Incomplete sentence (does not start with an uppercase letter). | ||||
| AverageSpaceSize | Average number of spaces per item (helps determine table items). | ||||
| FirstWordType | First word type. | ||||
| LastwordType | |||||
| Lead-in Information | |||||
| LeadInType | |||||
| LeadInValue | |||||
| FirstWordType | |||||
| Numerical Information | |||||
| Financial | |||||
| ListNumbers | |||||
| UnboundNumbers | |||||
| Analysis | |||||
| AlignmentMode | |||||
| AsParagraph | |||||
| AsHeading | |||||
| AsTable | |||||
† Planned items.
]
Related Functions
Platform Support
Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL
Legato IDE, Legato Basic
| Table of Contents | < < Previous | Next >> |
© 2012-2026 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission is prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. Novaworks, GoFiler™ and Legato™ are registered trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are the property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.