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

# LSMResult

A result of a lookup in a map.

```
class LSMResult
```

## Overview

An [`LSMResult`](/documentation/LatentSemanticMapping/LSMResult) is an immutable, opaque Core Foundation type that represents the result of a lookup.

## Topics

### Creating a Result

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

Returns the categories or words that best match when a text is mapped into a map, in decreasing order of likelihood.

[Result Flags](/documentation/LatentSemanticMapping/result-flags)

Options for creating a result.

### Querying Result Information

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

Returns the number of results.

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

Returns the category of the specified result.

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

Returns the likelihood of the specified result.

### Getting a Result

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

Returns the token for the n-th best (zero-based) result.

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

Returns the cluster of tokens for the n-th best (zero-based) result.

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

Returns the word for the n-th best (zero-based) result.

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

Returns the cluster of words for the n-th best (zero-based) result.

### Getting the Type Identifier

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

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

## 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)