<commit_before><h2>Callback signature</h2>

By default, an attribute filter or a tag filter only receives one argument: the attribute's value or the tag, respectively. Additional parameters can be appended with the methods `addParameterByName()` and `addParameterByValue()` and the whole list of parameters can be cleared with `resetParameters()`. Variables set in `$configurator->registeredVars` are available by name and can be changed at parsing time via `$parser->registeredVars`. Other special parameters listed below are available by name.


### Parameters available for all filters

<table>
<tr>
	<td><b>logger</b></td>
	<td>The parser's logger.</td>
</tr>
<tr>
	<td><b>registeredVars</b></td>
	<td>All of the registered variables in an array.</td>
</tr>
</table>


### Parameters available for attribute filters

<table>
<tr>
	<td><b>attrName</b></td>
	<td>The attribute's name.</td>
</tr>
<tr>
	<td><b>attrValue</b></td>
	<td>The attribute's value.</td>
</tr>
</table>


### Parameters available for tag filters

<table>
<tr>
	<td><b>openTags</b></td>
	<td>An array containing a list of all tags currently open.</td><commit_msg>Updated doc [ci skip]<commit_after><h2>Callback signature</h2>

By default, an attribute filter or a tag filter only receives one argument: the attribute's value or the tag, respectively. Additional parameters can be appended with the methods `addParameterByName()` and `addParameterByValue()` and the whole list of parameters can be cleared with `resetParameters()`. Variables set in `$configurator->registeredVars` are available by name and can be changed at parsing time via `$parser->registeredVars`. Other special parameters listed below are available by name.


### Parameters available for all filters

<table style="font-size:75%">
<tr>
	<td><b>logger</b></td>
	<td>The parser's logger.</td>
</tr>
<tr>
	<td><b>registeredVars</b></td>
	<td>All of the registered variables in an array.</td>
</tr>
</table>


### Parameters available for attribute filters

<table style="font-size:75%">
<tr>
	<td><b>attrName</b></td>
	<td>The attribute's name.</td>
</tr>
<tr>
	<td><b>attrValue</b></td>
	<td>The attribute's value.</td>
</tr>
</table>


### Parameters available for tag filters

<table style="font-size:75%">
<tr>
	<td><b>openTags</b></td>
	<td>An array containing a list of all tags currently open.</td>
{'fraction_non_alphanumeric': 0.14821124361158433, 'fraction_numerical': 0.004258943781942078, 'mean_word_length': 5.149214659685864, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 99, 'https://': 0, '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': '2344479', 'n_tokens_mistral': 745, 'n_tokens_neox': 719, 'n_words': 267}