<commit_before># Formatter

Pass following object to reporter module .

```js
var results = [
    // TextLintResult object
    {
        filePath: "./myfile.js",
        messages: [
            {
                ruleId: "semi",
                line: 1,
                column: 23,
                message: "Expected a semicolon."
            }
        ]
    }
];
```

## How to get source code from result?

You can read the source code from `filePath` property or `raw` property of `Document` node.<commit_msg>docs: Add link to textlint-formatter<commit_after># Formatter

Pass following object to reporter module .

```js
var results = [
    // TextLintResult object
    {
        filePath: "./myfile.js",
        messages: [
            {
                ruleId: "semi",
                line: 1,
                column: 23,
                message: "Expected a semicolon."
            }
        ]
    }
];
```

## How to get source code from result?

You can read the source code from `filePath` property or `raw` property of `Document` node.

## Built-in

[textlint/textlint-formatter](https://github.com/textlint/textlint-formatter "textlint/textlint-formatter")
{'fraction_non_alphanumeric': 0.10968294772922023, 'fraction_numerical': 0.005141388174807198, 'mean_word_length': 1.8144578313253013, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4355706', 'n_tokens_mistral': 349, 'n_tokens_neox': 326, 'n_words': 102}