<commit_before># txt-ast-traverse

txt-ast-traverse provide traversal functions for [Markdown AST](https://github.com/azu/markdown-to-ast/ "azu/markdown-to-ast").

This library a fork of [estraverse](https://github.com/estools/estraverse "Estraverse") for [azu/markdown-to-ast](https://github.com/azu/markdown-to-ast/ "azu/markdown-to-ast").

## Installation

- [ ] Describe the installation process

## Usage

- [ ] Write usage instructions


## Node

Markdown:

```markdown
Hello *world*
```

AST:

```json
{
    "t": "Document",
    "start_line": 1,
    "start_column": 1,
    "end_line": 0,
    "children": [
        {
            "t": "Paragraph",
            "start_line": 1,
            "start_column": 1,
            "end_line": 0,
            "inline_content": [
                {
                    "t": "Text",
                    "c": "Hello"
                },
                {
                    "t": "Text",
                    "c": " "
                },
                {
                    "t": "Emph",
                    "c": [
                        {
                            "t": "Text",
                            "c": "world"
                        }
                    ]
                }
            ],
            "children": []
        }
    ]
}
```

### Classify Node

- So-called `Node` has `t` or `type`
- `inline_content` wrapped Nodes.

## Contributing

1. Fork it!<commit_msg>docs(readme): fix typo<commit_after># txt-ast-traverse

txt-ast-traverse provide traversal functions for [Markdown AST](https://github.com/azu/markdown-to-ast/ "azu/markdown-to-ast").

This library is a fork of [estraverse](https://github.com/estools/estraverse "Estraverse") for [azu/markdown-to-ast](https://github.com/azu/markdown-to-ast/ "azu/markdown-to-ast").

## Installation

- [ ] Describe the installation process

## Usage

- [ ] Write usage instructions

## Action

Markdown:

```markdown
Hello *world*
```

AST:

```json
{
    "start_line": 1,
    "start_column": 1,
    "end_line": 0,
    "children": [
        {
            "start_line": 1,
            "start_column": 1,
            "end_line": 0,
            "inline_content": [
                {
                    "c": "Hello",
                    "raw": "Hello",
                    "loc": {
                        "start": {
                            "line": 1,
                            "column": 0
                        },
                        "end": {
                            "line": 1,
                            "column": 5
                        }
                    },
                    "range": [
                        0,
                        5
                    ],
                    "type": "Str"
                },
                {
                    "c": " ",
                    "raw": " ",
                    "loc": {
                        "start": {
                            "line": 1,
                            "column": 5
                        },
                        "end": {
                            "line": 1,
                            "column": 6
                        }
                    },
                    "range": [
                        5,
                        6
                    ],
                    "type": "Str"
                },
                {
                    "c": [
                        {
                            "c": "world",
                            "raw": "world",
                            "loc": {
                                "start": {
                                    "line": 1,
                                    "column": 0
                                },
                                "end": {
                                    "line": 1,
                                    "column": 5
                                }
                            },
                            "range": [
                                0,
                                5
                            ],
                            "type": "Str"
                        }
                    ],
                    "raw": "*world*",
                    "loc": {
                        "start": {
                            "line": 1,
                            "column": 6
                        },
                        "end": {
                            "line": 1,
                            "column": 13
                        }
                    },
                    "range": [
                        6,
                        13
                    ],
                    "type": "Emphasis"
                }
            ],
            "children": [],
            "raw": "Hello *world*",
            "loc": {
                "start": {
                    "line": 1,
                    "column": 0
                },
                "end": {
                    "line": 1,
                    "column": 13
                }
            },
            "range": [
                0,
                13
            ],
            "type": "Paragraph"
        }
    ],
    "raw": "Hello *world*",
    "loc": {
        "start": {
            "line": 1,
            "column": 0
        },
        "end": {
            "line": 1,
            "column": 13
        }
    },
    "range": [
        0,
        13
    ],
    "type": "Document"
}
```

### Classify Node

- So-called `Node` has `t` or `type`
- `inline_content` wrapped Nodes.

## Contributing

1. Fork it!
{'fraction_non_alphanumeric': 0.12890909090909092, 'fraction_numerical': 0.010181818181818183, 'mean_word_length': 0.651951951951952, 'pattern_counts': {'":': 92, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3535259', 'n_tokens_mistral': 1485, 'n_tokens_neox': 1344, 'n_words': 267}