---
title: "SKSummaryGetParagraphSummaryInfo(_:_:_:_:)"
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.4+]
path: coreservices/1447517-sksummarygetparagraphsummaryinfo
---

# SKSummaryGetParagraphSummaryInfo(_:_:_:_:)

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

## Declaration

```swift
func SKSummaryGetParagraphSummaryInfo(_ summary: SKSummary!, _ numParagraphsInSummary: CFIndex, _ outRankOrderOfParagraphs: UnsafeMutablePointer<CFIndex>!, _ outParagraphIndexOfParagraphs: UnsafeMutablePointer<CFIndex>!) -> CFIndex
```

## Parameters

- `summary`: The summarization object containing the text from which you want to build a summary.
- `numParagraphsInSummary`: The maximum number of paragraphs you want in the summary.
- `outRankOrderOfParagraphs`: 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 paragraph in the original text. The most important paragraph gets a rank of 1. The array size must equal numParagraphsInSummary, or else be NULL if you don’t want to get the relevance ranks.
- `outParagraphIndexOfParagraphs`: On output, points to an array containing the ordinal number for each paragraph in the original text. Use the doc://com.apple.documentation/documentation/coreservices/1445711-sksummarycopyparagraphatindex function with one of these numbers to get the corresponding paragraph. The array size must equal numParagraphsInSummary, or else be NULL if you don’t want to get the ordinal numbers of the paragraphs.

## Return Value

Return Value The number of paragraphs in the summary.

## See Also

### Working With Summarization

- [SKSummaryCreateWithString(_:)](coreservices/1446229-sksummarycreatewithstring.md)
- [SKSummaryGetSentenceSummaryInfo(_:_:_:_:_:)](coreservices/1444767-sksummarygetsentencesummaryinfo.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)
