Up
Authors
- Gregory John Casamento (
greg.casamento@gmail.com)
-
Date: Generated at 2025-12-03
Copyright: (C) 2019 Free Software Foundation, Inc.
- Declared in:
- Foundation/NSLinguisticTagger.h
Availability: MacOS-X 10.7.0
Description forthcoming.
NSLinguisticTagger declares 6 Instance Variables
+ (
NSArray*)
availableTagSchemesForLanguage: (
NSString*)language;
Availability: MacOS-X 10.7.0
Returns all available tag schemes for a specific
language.
+ (
NSArray*)
availableTagSchemesForUnit: (
NSLinguisticTaggerUnit)unit
language: (
NSString*)language;
Availability: MacOS-X 10.7.0
Returns all available tag schemes for the specified
unit and language.
+ (
NSString*)
dominantLanguageForString: (
NSString*)string;
Availability: MacOS-X 10.7.0
Returns the dominant language for a given
string.
- (
NSString*)
dominantLanguage;
Availability: MacOS-X 10.7.0
Returns the dominant language of the text.
- (void)
enumerateTagsInRange: (
NSRange)range
scheme: (
NSLinguisticTagScheme)tagScheme
options: (
NSLinguisticTaggerOptions)opts
usingBlock: (GSLinguisticTagRangeRangeBoolBlock)block;
Availability: MacOS-X 10.7.0
Enumerate over the tags in range,
using tagScheme, with opts,
execute block for each iteration.
- (instancetype)
initWithTagSchemes: (
NSArray*)tagSchemes
options: (
NSUInteger)opts;
Availability: MacOS-X 10.7.0
Initializes a tagger with the given linguistic
tag schemes and options.
- (
NSOrthography*)
orthographyAtIndex: (
NSUInteger)charIndex
effectiveRange: (
NSRangePointer)effectiveRange;
Availability: MacOS-X 10.7.0
Returns the orthography at a specific character
index and the effective range.
- (
NSRange)
sentenceRangeForRange: (
NSRange)range;
Availability: MacOS-X 10.7.0
Returns the sentence range encompassing
the given range.
- (void)
setOrthography: (
NSOrthography*)orthography
range: (
NSRange)range;
Availability: MacOS-X 10.7.0
Assigns a custom orthography object for
the specified range.
- (void)
setString: (
NSString*)string;
Availability: MacOS-X 10.7.0
Sets the string to be tagged.
- (
NSString*)
string;
Availability: MacOS-X 10.7.0
Gets the string to be tagged.
- (void)
stringEditedInRange: (
NSRange)newRange
changeInLength: (
NSInteger)delta;
Availability: MacOS-X 10.7.0
Informs the tagger that a portion of the string has
been edited.
- (
NSArray*)
tagSchemes;
Availability: MacOS-X 10.7.0
Returns the list of tag schemes used by this
tagger.
- (
NSArray*)
tagsInRange: (
NSRange)range
scheme: (
NSString*)tagScheme
options: (
NSLinguisticTaggerOptions)opts
tokenRanges: (
NSArray**)tokenRanges;
Availability: MacOS-X 10.7.0
Get the tags in the given range, for
tagScheme, with opts return the
ranges for those tags in tokenRanges.
Instance Variables for NSLinguisticTagger Class
@protected NSString*
_dominantLanguage;
Availability: MacOS-X 10.7.0
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSUInteger
_options;
Availability: MacOS-X 10.7.0
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSArray*
_orthographyArray;
Availability: MacOS-X 10.7.0
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSArray*
_schemes;
Availability: MacOS-X 10.7.0
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString*
_string;
Availability: MacOS-X 10.7.0
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSArray*
_tokenArray;
Availability: MacOS-X 10.7.0
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
- Declared in:
- Foundation/NSLinguisticTagger.h
Availability: MacOS-X 10.7.0
Category for NSString providing convenience
linguistic analysis methods.
- (void)
enumerateLinguisticTagsInRange: (
NSRange)range
scheme: (
NSLinguisticTagScheme)scheme
options: (
NSLinguisticTaggerOptions)options
orthography: (
NSOrthography*)orthography
usingBlock: (GSLinguisticTagRangeRangeBoolBlock)block;
Availability: MacOS-X 10.7.0
Enumerates linguistic tags in a given
range, passing each to the provided
block. @param range Range to
enumerate. @param scheme Tagging
scheme. @param options Options
for tagging. @param orthography Orthography
reference. @param block Block to call
with each result.
- (
NSArray*)
linguisticTagsInRange: (
NSRange)range
scheme: (
NSLinguisticTagScheme)scheme
options: (
NSLinguisticTaggerOptions)options
orthography: (
NSOrthography*)orthography
tokenRanges: (
NSArray**)tokenRanges;
Availability: MacOS-X 10.7.0
Returns linguistic tags in the specified
range using the given scheme
and orthography. @param range
Range of the string to analyze. @param
scheme Tagging scheme to use.
@param options Tagging options
. @param orthography Orthography to guide
analysis. @param tokenRanges Optional
output for token ranges.
Up