src/MySmaz.js
function generateCodebook() {

    var codebook = {};
    reverse_codebook.forEach(function (value, i) {
        codebook[value] = i;
    });

    return codebook;
}
function generateCodebook() {

    var codebook = {};
    reverse_codebook.forEach(function (value, i) {
        codebook[value] = i;
    });

    return codebook;
}
function generateCodebook ( ) { var codebook = { } ; reverse_codebook . forEach ( function ( value , i ) { codebook [ value ] = i ; } ) ; return codebook ; }
Generate the codebook from the reverse_codebook.
@return {[string]} The codebook
Generate the codebook from the reverse_codebook .