<commit_before># Assemblée Nationale Meteor package

Get amendment data from the French National Assembly in Meteor.

> Accéder à des données d'amendements de l'Assemblée Nationale depuis Meteor.


## Usage

	meteor add sgmap:assemblee-nationale

Then, on the server, you get access to a global `AssembleeNationale` namespace, which gives you the ability to asynchronously retrieve an array of amendments descriptions based on a law project identifier with the following function call:

```javascript
AssembleeNationale.getAmendements(textId, organismId, legislature, callback);
```

Your callback will be called with two parameters: an error or null if none occurred, and an array containing [amendment descriptions](#amendments-descriptions), sorted by examination order.

Example:

```javascript
AssembleeNationale.getAmendements(2447, 'CSCRACTIV', 14, function(error, amendments) {<commit_msg>Add documentation and test results badges<commit_after># Assemblée Nationale Meteor package

Get amendment data from the French National Assembly in Meteor.

> Accéder à des données d'amendements de l'Assemblée Nationale depuis Meteor.

[![Tests results](https://img.shields.io/travis/sgmap/meteor-assemblee-nationale/master.svg)](https://travis-ci.org/sgmap/meteor-assemblee-nationale)
[![Inline docs](https://inch-ci.org/github/sgmap/meteor-assemblee-nationale.svg?branch=master)](https://inch-ci.org/github/sgmap/meteor-assemblee-nationale)

## Usage

	meteor add sgmap:assemblee-nationale

Then, on the server, you get access to a global `AssembleeNationale` namespace, which gives you the ability to asynchronously retrieve an array of amendments descriptions based on a law project identifier with the following function call:

```javascript
AssembleeNationale.getAmendements(textId, organismId, legislature, callback);
```

Your callback will be called with two parameters: an error or null if none occurred, and an array containing [amendment descriptions](#amendments-descriptions), sorted by examination order.

Example:

```javascript
AssembleeNationale.getAmendements(2447, 'CSCRACTIV', 14, function(error, amendments) {
{'fraction_non_alphanumeric': 0.08266791921089714, 'fraction_numerical': 0.0056364490371066224, 'mean_word_length': 6.244897959183674, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3240817', 'n_tokens_mistral': 642, 'n_tokens_neox': 589, 'n_words': 213}