One Logo Pool Ball
NaturalLanguage · IOS API REFERENCE

NLGazetteer

class · iOS 13.0+ · SDK 27.1

class NLGazetteer

Members (7)

static · iOS 13.0+

write

TypeScript
static write(dictionary: Record<string, Array<string>>, language: (NLLanguage) | null, url: string): void
Swift declaration
class func write(_ dictionary: [String : [String]], language: NLLanguage?, to url: URL) throws
init · iOS 13.0+

init

TypeScript
static initContentsOf(url: string): NLGazetteer
Swift declaration
init(contentsOf url: URL) throws
init · iOS 13.0+

init

TypeScript
static initData(data: ArrayBuffer): NLGazetteer
Swift declaration
init(data: Data) throws
init · iOS 13.0+

init

TypeScript
static initDictionaryLanguage(dictionary: Record<string, Array<string>>, language?: (NLLanguage) | null): NLGazetteer
Swift declaration
init(dictionary: [String : [String]], language: NLLanguage?) throws
method · iOS 13.0+

label

TypeScript
label(string: string): (string) | null
Swift declaration
func label(for string: String) -> String?
get · iOS 13.0+

data

TypeScript
get data(): ArrayBuffer
Swift declaration
var data: Data { get }
get · iOS 13.0+

language

TypeScript
get language(): (NLLanguage) | null
Swift declaration
var language: NLLanguage? { get }

Skipped declarations

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

NLGazetteer.init()

inherited init: cannot prove legal (class declares 5 custom initializers)

All NaturalLanguage types →