<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "LatentSemanticMapping",
  "identifier" : "/documentation/LatentSemanticMapping/LSMText",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Latent Semantic Mapping"
    ],
    "preciseIdentifier" : "c:@T@LSMTextRef"
  },
  "title" : "LSMText"
}
-->

# LSMText

An input text.

```
class LSMText
```

## Overview

An [`LSMText`](/documentation/LatentSemanticMapping/LSMText) is a mutable, opaque Core Foundation type that represents an input text.

## Topics

### Creating a Text Object

[`LSMTextCreate`](/documentation/LatentSemanticMapping/LSMTextCreate(_:_:))

Creates a new text.

### Adding to the Text

[`LSMTextAddToken`](/documentation/LatentSemanticMapping/LSMTextAddToken(_:_:))

Adds an arbitrary binary token to the text.

[`LSMTextAddWord`](/documentation/LatentSemanticMapping/LSMTextAddWord(_:_:))

Adds a word to the text.

[`LSMTextAddWords`](/documentation/LatentSemanticMapping/LSMTextAddWords(_:_:_:_:))

Breaks a string into words using the specified locale, and adds the words to the text.

[Parsing Flags](/documentation/LatentSemanticMapping/parsing-flags)

Options for parsing words to add to the text.

### Getting the Type Identifier

[`LSMTextGetTypeID`](/documentation/LatentSemanticMapping/LSMTextGetTypeID())

Returns the Core Foundation type identifier for Latent Semantic Mapping texts.

## Relationships

### Conforms To

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

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

---

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)