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

# LSMTextAddWord(_:_:)

Adds a word to the text.

## Declaration

```swift
func LSMTextAddWord(_ textref: LSMText, _ word: CFString) -> OSStatus
```

## Discussion

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

## See Also

### Adding to the Text

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