One Logo Pool Ball
Foundation · IOS API REFERENCE

NSLinguisticTagger

class · iOS 5.0+ · Deprecated in iOS 100000.0 · SDK 27.1

class NSLinguisticTagger

Members (23)

static · iOS 5.0+ · Deprecated in iOS 100000.0

availableTagSchemes

TypeScript
static availableTagSchemesForLanguage(language: string): Array<NSLinguisticTagScheme>
Swift declaration
class func availableTagSchemes(forLanguage language: String) -> [NSLinguisticTagScheme]
static · iOS 11.0+ · Deprecated in iOS 100000.0

availableTagSchemes

TypeScript
static availableTagSchemesForLanguage1850(unit: NSLinguisticTaggerUnit, language: string): Array<NSLinguisticTagScheme>
Swift declaration
class func availableTagSchemes(for unit: NSLinguisticTaggerUnit, language: String) -> [NSLinguisticTagScheme]
static · iOS 11.0+ · Deprecated in iOS 100000.0

dominantLanguage

TypeScript
static dominantLanguageFor(string: string): (string) | null
Swift declaration
class func dominantLanguage(for string: String) -> String?
static · iOS 11.0+ · Deprecated in iOS 100000.0

enumerateTags

TypeScript
static enumerateTagsForRangeUnitSchemeOptionsOrthographyUsing(string: string, range: SDKHandle, unit: NSLinguisticTaggerUnit, scheme: NSLinguisticTagScheme, options: NSLinguisticTagger_Options, orthography: (NSOrthography) | null, block: ((arg0: (NSLinguisticTag) | null, arg1: SDKHandle, arg2: NativeOut<boolean>) => void)): void
Swift declaration
class func enumerateTags(for string: String, range: NSRange, unit: NSLinguisticTaggerUnit, scheme: NSLinguisticTagScheme, options: NSLinguisticTagger.Options = [], orthography: NSOrthography?, using block: (NSLinguisticTag?, NSRange, UnsafeMutablePointer<ObjCBool>) -> Void)
static · iOS 11.0+ · Deprecated in iOS 100000.0

tag

TypeScript
static tagForAtUnitSchemeOrthographyTokenRange(string: string, charIndex: number, unit: NSLinguisticTaggerUnit, scheme: NSLinguisticTagScheme, orthography?: (NSOrthography) | null, tokenRange?: (SDKHandle) | null): (NSLinguisticTag) | null
Swift declaration
class func tag(for string: String, at charIndex: Int, unit: NSLinguisticTaggerUnit, scheme: NSLinguisticTagScheme, orthography: NSOrthography?, tokenRange: NSRangePointer?) -> NSLinguisticTag?
static · iOS 11.0+ · Deprecated in iOS 100000.0

tags

TypeScript
static tagsForRangeUnitSchemeOptionsOrthographyTokenRanges(string: string, range: SDKHandle, unit: NSLinguisticTaggerUnit, scheme: NSLinguisticTagScheme, options?: NSLinguisticTagger_Options, orthography?: (NSOrthography) | null): { $ret: Array<NSLinguisticTag>; $out: { "tokenRanges": (NSArray) | null } }
Swift declaration
class func tags(for string: String, range: NSRange, unit: NSLinguisticTaggerUnit, scheme: NSLinguisticTagScheme, options: NSLinguisticTagger.Options = [], orthography: NSOrthography?, tokenRanges: AutoreleasingUnsafeMutablePointer<NSArray?>?) -> [NSLinguisticTag]

Omit the output parameters from the call. The result contains $ret and $out, with tokenRanges inside $out.

method · iOS 5.0+ · Deprecated in iOS 100000.0

enumerateTags

TypeScript
enumerateTagsInSchemeOptionsUsing(range: SDKHandle, tagScheme: NSLinguisticTagScheme, opts: NSLinguisticTagger_Options, block: ((arg0: (NSLinguisticTag) | null, arg1: SDKHandle, arg2: SDKHandle, arg3: NativeOut<boolean>) => void)): void
Swift declaration
func enumerateTags(in range: NSRange, scheme tagScheme: NSLinguisticTagScheme, options opts: NSLinguisticTagger.Options = [], using block: (NSLinguisticTag?, NSRange, NSRange, UnsafeMutablePointer<ObjCBool>) -> Void)
method · iOS 11.0+ · Deprecated in iOS 100000.0

enumerateTags

TypeScript
enumerateTagsInUnitSchemeOptionsUsing(range: SDKHandle, unit: NSLinguisticTaggerUnit, scheme: NSLinguisticTagScheme, options: NSLinguisticTagger_Options, block: ((arg0: (NSLinguisticTag) | null, arg1: SDKHandle, arg2: NativeOut<boolean>) => void)): void
Swift declaration
func enumerateTags(in range: NSRange, unit: NSLinguisticTaggerUnit, scheme: NSLinguisticTagScheme, options: NSLinguisticTagger.Options = [], using block: (NSLinguisticTag?, NSRange, UnsafeMutablePointer<ObjCBool>) -> Void)
init · iOS 5.0+ · Deprecated in iOS 100000.0

init

TypeScript
static init(tagSchemes: Array<NSLinguisticTagScheme>, opts: number): NSLinguisticTagger
Swift declaration
init(tagSchemes: [NSLinguisticTagScheme], options opts: Int)
method · iOS 5.0+ · Deprecated in iOS 100000.0

orthography

TypeScript
orthography(charIndex: number, effectiveRange?: (SDKHandle) | null): (NSOrthography) | null
Swift declaration
func orthography(at charIndex: Int, effectiveRange: NSRangePointer?) -> NSOrthography?
method · iOS 5.0+ · Deprecated in iOS 100000.0

possibleTags

TypeScript
possibleTags(charIndex: number, tagScheme: string, tokenRange?: (SDKHandle) | null, sentenceRange?: (SDKHandle) | null): { $ret: (Array<string>) | null; $out: { "scores": (NSArray) | null } }
Swift declaration
func possibleTags(at charIndex: Int, scheme tagScheme: String, tokenRange: NSRangePointer?, sentenceRange: NSRangePointer?, scores: AutoreleasingUnsafeMutablePointer<NSArray?>?) -> [String]?

Omit the output parameters from the call. The result contains $ret and $out, with scores inside $out.

method · iOS 5.0+ · Deprecated in iOS 100000.0

sentenceRange

TypeScript
sentenceRange(range: SDKHandle): SDKHandle
Swift declaration
func sentenceRange(for range: NSRange) -> NSRange
method · iOS 5.0+ · Deprecated in iOS 100000.0

setOrthography

TypeScript
setOrthography(orthography: (NSOrthography) | null, range: SDKHandle): void
Swift declaration
func setOrthography(_ orthography: NSOrthography?, range: NSRange)
method · iOS 5.0+ · Deprecated in iOS 100000.0

stringEdited

TypeScript
stringEdited(newRange: SDKHandle, delta: number): void
Swift declaration
func stringEdited(in newRange: NSRange, changeInLength delta: Int)
method · iOS 5.0+ · Deprecated in iOS 100000.0

tag

TypeScript
tagAtSchemeTokenRangeSentenceRange(charIndex: number, scheme: NSLinguisticTagScheme, tokenRange?: (SDKHandle) | null, sentenceRange?: (SDKHandle) | null): (NSLinguisticTag) | null
Swift declaration
func tag(at charIndex: Int, scheme: NSLinguisticTagScheme, tokenRange: NSRangePointer?, sentenceRange: NSRangePointer?) -> NSLinguisticTag?
method · iOS 11.0+ · Deprecated in iOS 100000.0

tag

TypeScript
tagAtUnitSchemeTokenRange(charIndex: number, unit: NSLinguisticTaggerUnit, scheme: NSLinguisticTagScheme, tokenRange?: (SDKHandle) | null): (NSLinguisticTag) | null
Swift declaration
func tag(at charIndex: Int, unit: NSLinguisticTaggerUnit, scheme: NSLinguisticTagScheme, tokenRange: NSRangePointer?) -> NSLinguisticTag?
method · iOS 5.0+ · Deprecated in iOS 100000.0

tags

TypeScript
tagsInSchemeOptionsTokenRanges(range: SDKHandle, tagScheme: string, opts?: NSLinguisticTagger_Options): { $ret: Array<string>; $out: { "tokenRanges": (NSArray) | null } }
Swift declaration
func tags(in range: NSRange, scheme tagScheme: String, options opts: NSLinguisticTagger.Options = [], tokenRanges: AutoreleasingUnsafeMutablePointer<NSArray?>?) -> [String]

Omit the output parameters from the call. The result contains $ret and $out, with tokenRanges inside $out.

method · iOS 11.0+ · Deprecated in iOS 100000.0

tags

TypeScript
tagsInUnitSchemeOptionsTokenRanges(range: SDKHandle, unit: NSLinguisticTaggerUnit, scheme: NSLinguisticTagScheme, options?: NSLinguisticTagger_Options): { $ret: Array<NSLinguisticTag>; $out: { "tokenRanges": (NSArray) | null } }
Swift declaration
func tags(in range: NSRange, unit: NSLinguisticTaggerUnit, scheme: NSLinguisticTagScheme, options: NSLinguisticTagger.Options = [], tokenRanges: AutoreleasingUnsafeMutablePointer<NSArray?>?) -> [NSLinguisticTag]

Omit the output parameters from the call. The result contains $ret and $out, with tokenRanges inside $out.

method · iOS 11.0+ · Deprecated in iOS 100000.0

tokenRange

TypeScript
tokenRange(charIndex: number, unit: NSLinguisticTaggerUnit): SDKHandle
Swift declaration
func tokenRange(at charIndex: Int, unit: NSLinguisticTaggerUnit) -> NSRange
get · iOS 11.0+ · Deprecated in iOS 100000.0

dominantLanguage

TypeScript
get dominantLanguage(): (string) | null
Swift declaration
var dominantLanguage: String? { get }
get · iOS 5.0+ · Deprecated in iOS 100000.0

string

TypeScript
get string(): (string) | null
Swift declaration
var string: String? { get set }
set · iOS 5.0+ · Deprecated in iOS 100000.0

string

TypeScript
set string(value: (string) | null)
Swift declaration
var string: String? { get set }
get · iOS 5.0+ · Deprecated in iOS 100000.0

tagSchemes

TypeScript
get tagSchemes(): Array<NSLinguisticTagScheme>
Swift declaration
var tagSchemes: [NSLinguisticTagScheme] { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

NSLinguisticTagger.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All Foundation types →