<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "LatentSemanticMapping",
  "identifier" : "/documentation/LatentSemanticMapping/LSMTextAddToken(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Latent Semantic Mapping"
    ],
    "preciseIdentifier" : "c:@F@LSMTextAddToken"
  },
  "title" : "LSMTextAddToken(_:_:)"
}
-->

# LSMTextAddToken(_:_:)

Adds an arbitrary binary token to the text.

```
func LSMTextAddToken(_ textref: LSMText, _ token: CFData) -> OSStatus
```

## Discussion

The order of tokens is significant if the map uses pairs or triplets, and the count of tokens is always significant.

---

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)