<commit_before>## WHAT

Lexicon is a simple collection of `dict` subclasses providing extra power:

* `AliasDict`, a dictionary supporting both simple and complex key aliasing:
    * Alias a single key to another key, so that e.g. `mydict['bar']` points to
    `mydict['foo']`, for both reads and writes.
    * Alias a single key to a list of other keys, for writing only, e.g. with
    `active_groups = AliasDict({'ops': True, 'biz': True, 'dev': True,
    'product': True})` one can make an alias `'tech'` mapping to `('ops',
    'dev')` and then e.g. `active_groups['tech'] = False`.
    * Aliasing is recursive: an alias pointing to another alias will behave as
    if it points to the other alias' target.
* `AttributeDict`, supporting attribute read & write access, e.g.
  `mydict = AttributeDict({'foo': 'bar'})` exhibits `mydict.foo` and
  `mydict.foo = 'new value'`.
* `Lexicon`, a subclass of both of the above which exhibits both sets of
  behavior.

## HOW

* `pip install lexicon`
* `from lexicon import Lexicon` (or one of the superclasses)
* Use as needed.<commit_msg>Note Python version requirements in README<commit_after>## WHAT

Lexicon is a simple Python 2.6+ and 3.3+ compatible collection of `dict`
subclasses providing extra power:

* `AliasDict`, a dictionary supporting both simple and complex key aliasing:
    * Alias a single key to another key, so that e.g. `mydict['bar']` points to
    `mydict['foo']`, for both reads and writes.
    * Alias a single key to a list of other keys, for writing only, e.g. with
    `active_groups = AliasDict({'ops': True, 'biz': True, 'dev': True,
    'product': True})` one can make an alias `'tech'` mapping to `('ops',
    'dev')` and then e.g. `active_groups['tech'] = False`.
    * Aliasing is recursive: an alias pointing to another alias will behave as
    if it points to the other alias' target.
* `AttributeDict`, supporting attribute read & write access, e.g.
  `mydict = AttributeDict({'foo': 'bar'})` exhibits `mydict.foo` and
  `mydict.foo = 'new value'`.
* `Lexicon`, a subclass of both of the above which exhibits both sets of
  behavior.

## HOW

* `pip install lexicon`
* `from lexicon import Lexicon` (or one of the superclasses)
* Use as needed.
{'fraction_non_alphanumeric': 0.12034126627750337, 'fraction_numerical': 0.001796138302649304, 'mean_word_length': 3.940133037694013, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1234496', 'n_tokens_mistral': 700, 'n_tokens_neox': 671, 'n_words': 303}