---
title: "extracted(from:title:)"
framework: imageplayground
role: symbol
role_heading: Type Method
path: "imageplayground/imageplaygroundconcept/extracted(from:title:)"
---

# extracted(from:title:)

Creates a concept structure from a long-form string and a title that guides the extraction of concepts from that string.

## Declaration

```swift
static func extracted(from text: String, title: String? = nil) -> ImagePlaygroundConcept
```

## Parameters

- `text`: A long text description, such as a paragraph or document. You can specify any length string you want. For strings above a minimum length, the system extracts important or interesting concepts using the contents of title as a guide. It converts the concepts it extracts into a separate input prompts for the diffusion model. For strings below the minimum length, the system passes the entire string to the model.
- `title`: A concise summary of the text you pass in the text parameter. The system uses this string as a guide to extract concepts from the text parameter.

## Return Value

Return Value A concept object that encapsulates the concepts from the specified text.

## Discussion

Discussion Call this method when you want to use long-form text to generate an image. The method extracts relevant details from the text and uses them to create the returned object.

## See Also

### Describing the image

- [text(_:)](imageplayground/imageplaygroundconcept/text(_:).md)
- [drawing(_:)](imageplayground/imageplaygroundconcept/drawing(_:).md)
- [image(_:)](imageplayground/imageplaygroundconcept/image(_:)-29ora.md)
- [image(_:)](imageplayground/imageplaygroundconcept/image(_:)-2s44c.md)
