<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "LatentSemanticMapping",
  "identifier" : "/documentation/LatentSemanticMapping/LSMMapSetStopWords(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Latent Semantic Mapping"
    ],
    "preciseIdentifier" : "c:@F@LSMMapSetStopWords"
  },
  "title" : "LSMMapSetStopWords(_:_:)"
}
-->

# LSMMapSetStopWords(_:_:)

Specifies which words to omit from all classification efforts.

```
func LSMMapSetStopWords(_ mapref: LSMMap, _ textref: LSMText) -> OSStatus
```

## Discussion

You must call this function before creating any other texts. The `textref` is no longer needed after this call.

---

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)