Skip to main content
WordsSegmenter class

Applies to Windows only

A segmenter class that is able to segment provided text into words.

The language supplied when this object is constructed is matched against the languages with word breakers on the system, and the best word segmentation rules available are used. The language need not be one of the app's supported languages. If there are no supported language rules available specifically for that language, the language-neutral rules are used (an implementation of Unicode Standard Annex #29 Unicode Text Segmentation), and the ResolvedLanguage property is set to "und" (undetermined language).

Syntax


var wordsSegmenter = new Windows.Data.Text.WordsSegmenter();

public sealed class WordsSegmenter

Public NotInheritable Class WordsSegmenter

public ref class WordsSegmenter sealed 

Attributes

[ DualApiPartition()]
[ MarshalingBehavior(Agile)]
[ Threading(Both)]
[ Version(0x06030000)]

Members

The WordsSegmenter class has these types of members:

Constructors

The WordsSegmenter class has these constructors.

ConstructorDescription
WordsSegmenter Creates a WordsSegmenter object.

 

Methods

The WordsSegmenter class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
GetTokenAt Determines and returns the word which contains or follows a specified index into the provided text.
GetTokens Determines and returns all of the words in the provided text.
Tokenize Calls the provided handler with two iterators that iterate through the words prior to and following a given index into the provided text.

 

Properties

The WordsSegmenter class has these properties.

PropertyAccess typeDescription

ResolvedLanguage

Read-onlyGets the language of the rules used by this WordsSegmenter object.

 

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

None supported

Namespace

Windows.Data.Text
Windows::Data::Text [C++]

Metadata

Windows.winmd

See also

Object