I'm currently writing a little library for detecting "bad" words in content (see [here](https://github.com/StephenMelrose/badwords-php)), and I'm having a little trouble deciding how/where to namespace a specific class.

The usage flow of my library so far is as follows,

```
$dictionary = new Dictionary\Csv('/path/to/file.csv');
$config = new Filter\Config\Standard();
$filter = new Filter($dictionary, $config);

```

Basically you create a `Dictionary` of words, a `Filter\Config` which defines how the `Filter` executes, and then create a `Filter` from said objects.

Internally, the `Filter` uses the `Filter\Config` to convert the `Word`s in the `Dictionary` to regular expressions.

**Now my problem** is I don't know what to call and/or where to put this "converter".

My current ideas are,

1. `Word\RegExpConverter` (as there is a `Word` class to represent a word)
2. `Word\Converter\RegExp`
3. `Filter\RegExpConverter`

Because the `Word` is being converted, it seems to make sense to have it in the `Word\` namespace, but at the same time it's something specific to the `Filter` and requires the `Filter\Config`.

Thoughts? Ideas?

Cheers, Steve