<commit_before>#!/usr/bin/env node
//
// This script translates i18n.json (Gherkin 2) to gherkin-languages.json (Gherkin 3).
//

var i18n = require('./i18n');
var dialects = {};

Object.keys(i18n).forEach(function (iso) {
  var lang = i18n[iso];

  var dialect = {
    name: lang.name,
    native: lang.native,
    feature: lang.feature.split('|'),
    background: lang.background.split('|'),
    scenario: lang.scenario.split('|'),
    scenarioOutline: lang.scenario_outline.split('|'),
    examples: lang.examples.split('|'),
    given: space(lang.given.split('|')),<commit_msg>Read i18n.json from ARGV<commit_after>#!/usr/bin/env node
//
// This script translates i18n.json (Gherkin 2) to gherkin-languages.json (Gherkin 3).
//

var i18n = require(process.argv[2]);
var dialects = {};

Object.keys(i18n).forEach(function (iso) {
  var lang = i18n[iso];

  var dialect = {
    name: lang.name,
    native: lang.native,
    feature: lang.feature.split('|'),
    background: lang.background.split('|'),
    scenario: lang.scenario.split('|'),
    scenarioOutline: lang.scenario_outline.split('|'),
    examples: lang.examples.split('|'),
    given: space(lang.given.split('|')),
{'fraction_non_alphanumeric': 0.1867572156196944, 'fraction_numerical': 0.021222410865874362, 'mean_word_length': 3.871900826446281, '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': '6498165', 'n_tokens_mistral': 440, 'n_tokens_neox': 418, 'n_words': 82}