Check if the token underlying the node is a capitalized word.
returnedBoolean = variableType("$cap")
returnedBoolean - type: int
variableType - type: N
Returns 1 if the token is a capitalized word and 0 if not.
WARNING: $cap is not identical to the @PRE action cap( ). $cap will traverse down to the leafiest node it can find, in order to perform its check. The @PRE action only chains down if the [s] flag is present in the associated phrase element(s). Also, $cap is not stopped by a [base] attribute in a node. |
$allcaps, $lowercase, $mixcap, $uppercase, Special Variables