---
title: "LSMTextAddToken(_:_:)"
framework: Latent Semantic Mapping
role: symbol
role_heading: Function
path: "latentsemanticmapping/lsmtextaddtoken(_:_:)"
---

# LSMTextAddToken(_:_:)

Adds an arbitrary binary token to the text.

## Declaration

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

## Discussion

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

## See Also

### Adding to the Text

- [LSMTextAddWord(_:_:)](latentsemanticmapping/lsmtextaddword(_:_:).md)
- [LSMTextAddWords(_:_:_:_:)](latentsemanticmapping/lsmtextaddwords(_:_:_:_:).md)
- [Parsing Flags](latentsemanticmapping/parsing-flags.md)
