# Metagen

`Xmf\Metagen` is a *metadata generator* class. It can assist in analysing arbitrary text, and extracting useful subsets, such as the most common words, or summary paragraphs.

Metadata is defined as *"data that provides information about other data."* In a web application context, this can refer to HTML *meta* tags, which are data which describe a page's content. Metadata can also be indexing and tagging data related to application data or content.

While it is usually best to provide tools for content authors to specify custom metadata, automated extraction of metadata can be a useful tool.

## Metagen in detail

* [Extracting Data](/xmf-cookbook/reference/metagen/extracting-data.md)
* [Applying Data](/xmf-cookbook/reference/metagen/applying-data.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xoops.gitbook.io/xmf-cookbook/reference/metagen.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
