<commit_before>language_engine
===============

[![Build Status](https://travis-ci.org/dryade/language_engine.svg?branch=master)](https://travis-ci.org/dryade/language_engine)

language_engine is a rails engine for language with :
 * a controller
 * a helper

Views and assets are not defined because we think everybody wants to adapt the view in their page.

You can access to a demo on [http://appli.chouette.mobi](http://appli.chouette.mobi/chouette2/users/sign_in) with
 * login : <EMAIL>
 * password : <PASSWORD>

Requirements
------------

This code has been run and tested on Travis with :
* Ruby 1.9.3

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

Add gem to your rails app in Gemfile : 

```sh
gem 'language_engine'
```

Download gem librairies : 

```sh
bundle install
```

Usage (with bootstrap plugin)
----

First you must set local in your application controller for example :
```ruby
class ApplicationController < ActionController::Base
  protect_from_forgery
  before_filter :set_locale<commit_msg>Update README for rails 4 helper integration<commit_after>language_engine
===============

[![Build Status](https://travis-ci.org/dryade/language_engine.svg?branch=master)](https://travis-ci.org/dryade/language_engine)

language_engine is a rails engine for language with :
 * a controller
 * a helper

Views and assets are not defined because we think everybody wants to adapt the view in their page.

You can access to a demo on [http://appli.chouette.mobi](http://appli.chouette.mobi/chouette2/users/sign_in) with
 * login : <EMAIL>
 * password : <PASSWORD>

Requirements
------------

This code has been run and tested on Travis with :
* Ruby 1.9.3

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

Add gem to your rails app in Gemfile : 

```sh
gem 'language_engine'
```

Download gem librairies : 

```sh
bundle install
```

Usage (with bootstrap plugin)
----

First you must set local in your application controller for example :
```ruby
class ApplicationController < ActionController::Base
  protect_from_forgery
  helper LanguageEngine::Engine.helpers
  before_filter :set_locale
{'fraction_non_alphanumeric': 0.12857836001940806, 'fraction_numerical': 0.004366812227074236, 'mean_word_length': 4.129353233830845, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1479759', 'n_tokens_mistral': 639, 'n_tokens_neox': 601, 'n_words': 205}