<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NaturalLanguage",
  "identifier" : "/documentation/NaturalLanguage/NLTokenizer/Attributes",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Natural Language",
      "NaturalLanguage"
    ],
    "preciseIdentifier" : "c:@E@NLTokenizerAttributes"
  },
  "title" : "NLTokenizer.Attributes"
}
-->

# NLTokenizer.Attributes

Hints about the contents of the string for the tokenizer.

```
struct Attributes
```

## Topics

### Contents

[`NLTokenizerAttributeEmoji`](/documentation/NaturalLanguage/NLTokenizer/Attributes/emoji)

The string contains emoji.

[`NLTokenizerAttributeNumeric`](/documentation/NaturalLanguage/NLTokenizer/Attributes/numeric)

The string contains numbers.

[`NLTokenizerAttributeSymbolic`](/documentation/NaturalLanguage/NLTokenizer/Attributes/symbolic)

The string contains symbols.

### Initializers

[`init(rawValue:)`](/documentation/NaturalLanguage/NLTokenizer/Attributes/init(rawValue:))

Creates an attribute with given value.

## Relationships

### Conforms To

[`OptionSet`](/documentation/Swift/OptionSet)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)