<commit_before>Derby Lang FS
=============

Load a [Derby Lang](https://github.com/psirenny/derby-lang) dictionary from the file system.

Installation
------------

    $ npm install derby-lang-fs --save

Usage
-----

Add the middleware to your server file:

    var langFs = require('derby-lang-fs');

    expressApp
      // ...
      // ...
      .use(lang())
      .use(langFs({
        dir: '/path/to/dir'
      }))

Options
-------

`dir` — The directory containing the language files.  
`path` — The path to set the dictionary. Defaults to **$lang.dict**.<commit_msg>add test badge<commit_after>Derby Lang FS
=============

Load a [Derby Lang](https://github.com/psirenny/derby-lang) dictionary from the file system.

[![Build Status](https://travis-ci.org/psirenny/derby-lang-fs.png?branch=master)](https://travis-ci.org/psirenny/derby-lang-fs)

Installation
------------

    $ npm install derby-lang-fs --save

Usage
-----

Add the middleware to your server file:

    var langFs = require('derby-lang-fs');

    expressApp
      // ...
      // ...
      .use(lang())
      .use(langFs({
        dir: '/path/to/dir'
      }))

Options
-------

`dir` — The directory containing the language files.  
`path` — The path to set the dictionary. Defaults to **$lang.dict**.
{'fraction_non_alphanumeric': 0.19405320813771518, 'fraction_numerical': 0.0, 'mean_word_length': 2.339425587467363, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '6283508', 'n_tokens_mistral': 430, 'n_tokens_neox': 407, 'n_words': 109}