---
title: "SKSummaryGetSentenceSummaryInfo(_:_:_:_:_:)"
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.4+]
path: coreservices/1444767-sksummarygetsentencesummaryinfo
---

# SKSummaryGetSentenceSummaryInfo(_:_:_:_:_:)

Gets detailed information about a body of text for constructing a custom sentence-based summary string.

## Declaration

```swift
func SKSummaryGetSentenceSummaryInfo(_ summary: SKSummary!, _ numSentencesInSummary: CFIndex, _ outRankOrderOfSentences: UnsafeMutablePointer<CFIndex>!, _ outSentenceIndexOfSentences: UnsafeMutablePointer<CFIndex>!, _ outParagraphIndexOfSentences: UnsafeMutablePointer<CFIndex>!) -> CFIndex
```

## Parameters

- `summary`: The summarization object containing the text from which you want to build a summary.
- `numSentencesInSummary`: The maximum number of sentences you want in the summary.
- `outRankOrderOfSentences`: On input, a pointer to an array of CFIndex objects. On output, points to the previously allocated array, which now lists the summarization relevance rank of each sentence in the original text. The most important sentence gets a rank of 1. The array size must equal numSentencesInSummary, or else be NULL if you don’t want to get the rank orders.
- `outSentenceIndexOfSentences`: On input, a pointer to an array of CFIndex objects. On output, points to the previously allocated array, which now contains the ordinal number for each sentence in the original text. Use the doc://com.apple.documentation/documentation/coreservices/1450287-sksummarycopysentenceatindex function with one of these numbers to get the corresponding sentence. The array size must equal numSentencesInSummary, or else be NULL if you don’t want to get the ordinal numbers of the sentences.
- `outParagraphIndexOfSentences`: On input, a pointer to an array of CFIndex objects. On output, points to the previously allocated array, which now contains the ordinal number for the paragraph that each corresponding sentence, referenced in outSentenceIndexOfSentences, appears in. The array size must equal numSentencesInSummary, or else be NULL if you don’t want to get the ordinal numbers of the sentences.

## Return Value

Return Value The number of sentences in the summary.

## See Also

### Working With Summarization

- [SKSummaryCreateWithString(_:)](coreservices/1446229-sksummarycreatewithstring.md)
- [SKSummaryGetParagraphSummaryInfo(_:_:_:_:)](coreservices/1447517-sksummarygetparagraphsummaryinfo.md)
- [SKSummaryGetSentenceCount(_:)](coreservices/1450009-sksummarygetsentencecount.md)
- [SKSummaryGetParagraphCount(_:)](coreservices/1449304-sksummarygetparagraphcount.md)
- [SKSummaryCopySentenceAtIndex(_:_:)](coreservices/1450287-sksummarycopysentenceatindex.md)
- [SKSummaryCopyParagraphAtIndex(_:_:)](coreservices/1445711-sksummarycopyparagraphatindex.md)
- [SKSummaryCopySentenceSummaryString(_:_:)](coreservices/1449700-sksummarycopysentencesummarystri.md)
- [SKSummaryCopyParagraphSummaryString(_:_:)](coreservices/1449746-sksummarycopyparagraphsummarystr.md)
- [SKSummaryGetTypeID()](coreservices/1444796-sksummarygettypeid.md)
