---
title: hyphenationFactor
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsparagraphstyle/hyphenationfactor
---

# hyphenationFactor

The paragraph’s threshold for hyphenation.

## Declaration

```swift
var hyphenationFactor: Float { get }
```

## Discussion

Discussion The system attempts hyphenation when the ratio of the text width (as broken without hyphenation) to the width of the line fragment is less than the hyphenation factor. When the paragraph’s hyphenation factor is 0.0, the system uses the layout manager’s hyphenation factor instead. The system disables hyphenation when both are 0.0. This property detects the user-selected language by examining the first item in preferredLanguages.

## See Also

### Getting line-break information

- [lineBreakMode](appkit/nsparagraphstyle/linebreakmode.md)
- [NSLineBreakMode](appkit/nslinebreakmode.md)
- [lineBreakStrategy](appkit/nsparagraphstyle/linebreakstrategy-swift.property.md)
- [NSParagraphStyle.LineBreakStrategy](appkit/nsparagraphstyle/linebreakstrategy-swift.struct.md)
- [usesDefaultHyphenation](appkit/nsparagraphstyle/usesdefaulthyphenation.md)
- [tighteningFactorForTruncation](appkit/nsparagraphstyle/tighteningfactorfortruncation.md)
- [allowsDefaultTighteningForTruncation](appkit/nsparagraphstyle/allowsdefaulttighteningfortruncation.md)
