Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.6j

Application v 6.5c

  

 

Chapter FiveGeneral 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