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

# LSMResultCreate(_:_:_:_:_:)

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

## Declaration

```swift
func LSMResultCreate(_ alloc: CFAllocator?, _ mapref: LSMMap, _ textref: LSMText, _ numResults: CFIndex, _ flags: CFOptionFlags) -> Unmanaged<LSMResult>
```

## See Also

### Creating a Result

- [Result Flags](latentsemanticmapping/result-flags.md)
