<!--
{
  "documentType" : "article",
  "framework" : "LatentSemanticMapping",
  "identifier" : "/documentation/LatentSemanticMapping/parsing-flags",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Parsing Flags"
}
-->

# Parsing Flags

Options for parsing words to add to the text.

## Discussion

Specify these options for [`LSMTextAddWords(_:_:_:_:)`](/documentation/LatentSemanticMapping/LSMTextAddWords(_:_:_:_:)).

## Topics

### Constants

[`var kLSMTextApplySpamHeuristics: Int`](/documentation/LatentSemanticMapping/kLSMTextApplySpamHeuristics)

An option that specifies the parser should attempt to find words in hostile text.

[`var kLSMTextPreserveAcronyms: Int`](/documentation/LatentSemanticMapping/kLSMTextPreserveAcronyms)

An option that specifies the parser shouldn’t map all-uppercase words to lowercase.

[`var kLSMTextPreserveCase: Int`](/documentation/LatentSemanticMapping/kLSMTextPreserveCase)

An option that specifies the parser shouldn’t change any words to lowercase.



---

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)