<commit_before>Title: Base filters
Description: Base filters available for each parser.
EditFilePath: documentation/parser/filters.cshtml
Order: 3
---
@using Strinken

Base filters are filters that are injected into a new parser during its creation.

<h1 id="fitlers-strinken">Base filters in Strinken.dll</h1>

Here is the list of all base filters that are defined in <strong>Strinken.dll</strong>.

<div class="box">
    <div class="box-body no-padding">
        <table class="table table-striped table-hover table-responsive">
            <thead>
                <tr>
                    <th class="col-md-2">Name</th>
                    <th class="col-md-5">Description</th>
                    <th class="col-md-5">Usage</th>
                </tr>
            </thead>
            
            <tbody>
                @{
                    var p = new Parser<object>();
                    foreach (var filter in p.Filters.OrderBy(x => x.Name))
                    {
                        <tr>
                            <td><strong>@filter.Name</strong></td>
                            <td>@filter.Description</td>
                            <td><code>@filter.Usage</code></td>
                        </tr>
                    }
                }
            </tbody>				
        </table>
    </div>
</div> 

<h1 id="fitlers-modification">Base filters modification</h1>

The <a href="@Context.GetLink("api/Strinken/BaseFilters/")">BaseFilters</a> class provide two 
methods for interacting with base filters : 
<ul><commit_msg>Add AlternativeName of base filters to the table<commit_after>Title: Base filters
Description: Base filters available for each parser.
EditFilePath: documentation/parser/filters.cshtml
Order: 3
---
@using Strinken

Base filters are filters that are injected into a new parser during its creation.

<h1 id="fitlers-strinken">Base filters in Strinken.dll</h1>

Here is the list of all base filters that are defined in <strong>Strinken.dll</strong>.

<div class="box">
    <div class="box-body no-padding">
        <table class="table table-striped table-hover table-responsive">
            <thead>
                <tr>
                    <th class="col-md-2">Name</th>
                    <th class="col-md-5">Description</th>
                    <th class="col-md-5">Usage</th>
                </tr>
            </thead>
            
            <tbody>
                @{
                    var p = new Parser<object>();
                    foreach (var filter in p.Filters.OrderBy(x => x.Name))
                    {
                        <tr>
                            @if (string.IsNullOrWhiteSpace(filter.AlternativeName))
                            {
                                <td><strong>@filter.Name</strong></td>
                            }
                            else
                            {
                                <td><strong>@filter.Name</strong> or <strong>@filter.AlternativeName</td>
                            }       
                            <td>@filter.Description</td>
                            <td><code>@filter.Usage</code></td>
                        </tr>
                    }
                }
            </tbody>				
        </table>
    </div>
</div> 

<h1 id="fitlers-modification">Base filters modification</h1>

The <a href="@Context.GetLink("api/Strinken/BaseFilters/")">BaseFilters</a> class provide two 
methods for interacting with base filters : 
<ul>
{'fraction_non_alphanumeric': 0.11840968020743302, 'fraction_numerical': 0.004609622587150677, 'mean_word_length': 1.4228890439637125, 'pattern_counts': {'":': 0, '<': 88, '<?xml version=': 0, '>': 90, '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': '5775470', 'n_tokens_mistral': 953, 'n_tokens_neox': 908, 'n_words': 222}