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

# LSMMapSetStopWords(_:_:)

Specifies which words to omit from all classification efforts.

## Declaration

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

## Discussion

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

## See Also

### Starting Training Mode

- [LSMMapStartTraining(_:)](latentsemanticmapping/lsmmapstarttraining(_:).md)
- [LSMMapAddCategory(_:)](latentsemanticmapping/lsmmapaddcategory(_:).md)
- [LSMMapGetCategoryCount(_:)](latentsemanticmapping/lsmmapgetcategorycount(_:).md)
- [LSMMapAddText(_:_:_:)](latentsemanticmapping/lsmmapaddtext(_:_:_:).md)
- [LSMMapAddTextWithWeight(_:_:_:_:)](latentsemanticmapping/lsmmapaddtextwithweight(_:_:_:_:).md)
- [LSMCategory](latentsemanticmapping/lsmcategory.md)
