<commit_before>'use strict';
const AWS = require('aws-sdk');
AWS.config.update({region:'us-west-2'});
const dynamo = new AWS.DynamoDB.DocumentClient();

exports.search = (term, done) => {

    var params = {
        TableName: 'etymology',
        FilterExpression : 'word = :word',
        ExpressionAttributeValues : { ':word' : term },
        Limit: 5
    };

    dynamo.scan(params, (err, data) => {
        if (err) {
            return done(err);
        }
        done(null, makeResponse(term, data));
    });

};
<commit_msg>Correction to dynamodb search params<commit_after>'use strict';
const AWS = require('aws-sdk');
AWS.config.update({region:'us-west-2'});
const dynamo = new AWS.DynamoDB.DocumentClient();

exports.search = (term, done) => {

    var params = {
        TableName: 'etymology',
        FilterExpression : 'word = :word',
        ExpressionAttributeValues : { ':word' : `${term}` },
        Limit: 5
    };

    dynamo.scan(params, (err, data) => {
        if (err) {
            return done(err);
        }
        done(null, makeResponse(term, data));
    });

};

{'fraction_non_alphanumeric': 0.1687956204379562, 'fraction_numerical': 0.0036496350364963502, 'mean_word_length': 2.5501618122977345, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3546905', 'n_tokens_mistral': 356, 'n_tokens_neox': 348, 'n_words': 74}