Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Unicode > age_unicode
word_positions/1
Description
word_positions/1 is an Erlang function exported by "api_age_unicode" module.
Lists the word positions with their lenghts within an input Unicode string.
References
None
Parameters
Name
Type
Input
string()
Unicode string.
Result
Value or Type
list()
Returns list of tuples {Position, Length} of the recognized words.
Code Sample
> age_unicode:word_positions("xyzABC and ABCD"). [{1,6}, {8,3}, {12,4}]