<!--
{
  "availability" : [
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "LatentSemanticMapping",
  "identifier" : "/documentation/LatentSemanticMapping",
  "metadataVersion" : "0.1.0",
  "role" : "Framework",
  "symbol" : {
    "kind" : "Framework",
    "modules" : [
      "Latent Semantic Mapping"
    ],
    "preciseIdentifier" : "LatentSemanticMapping"
  },
  "title" : "Latent Semantic Mapping"
}
-->

# Latent Semantic Mapping

Classify text and other token-based content into developer-defined categories.

## Overview

The Latent Semantic Mapping framework classifies texts based on latent semantic information. The C-based functions of this API are designed to be language-independent and are Unicode-based.

For other natural language processing functionality, see <doc://com.apple.documentation/documentation/NaturalLanguage>.

## Topics

### Text Classification

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

A map between a set of categories and related text.

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

An input text.

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

A result of a lookup in a map.

### Error Handling

[Error Codes](/documentation/LatentSemanticMapping/error-codes)

Error codes in Latent Semantic Mapping.



---

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)