old_contents: import wajs from 'wajs';
  import secrets from '../../secrets';
  export const WA_APP_ID = secrets.wolframAlphaId;
  
  export const waClient = new wajs(WA_APP_ID);
  
  export const QUERY_OPTIONS = {
    format: 'plaintext',
    podState: '100@More',
    ignoreCase: true,
    // includePodId: ['Result']
  };
  
  export const formatQuery = (query) => query //`list of ${query}`;
  
  export const formatResponse = (response) => {
    if (!response.pods()[1]){
      return false;
    }
    let queryString = response.pods()[1].subpod[0].plaintext[0];
    console.log('querystring', queryString)
    if (queryString === '(data not available)'){
      return false;
    }
    const totalIndex = queryString.indexOf('(total:');
    if (totalIndex > -1) {
      queryString = queryString.substring(0, totalIndex);
    }
    queryString = queryString.trim();
    let resultArray = queryString.split('  |  ');
    if (resultArray.length === 1) {
      resultArray = queryString.split('\n');
    }
    return resultArray;
  }
new_contents: import wajs from 'wajs';
  import secrets from '../../secrets';
  export const WA_APP_ID = secrets.wolframAlphaId;
  
  export const waClient = new wajs(WA_APP_ID);
  
  export const QUERY_OPTIONS = {
    format: 'plaintext',
    podState: '100@More',
    ignoreCase: true,
    // includePodId: ['Result']
  };
  
  export const formatQuery = (query) => `${query} list`;
  
  export const formatResponse = (response) => {
    if (!response.pods()[1]){
      return false;
    }
    let queryString = response.pods()[1].subpod[0].plaintext[0];
    console.log('querystring', queryString)
    if (queryString === '(data not available)'){
      return false;
    }
    const totalIndex = queryString.indexOf('(total:');
    if (totalIndex > -1) {
      queryString = queryString.substring(0, totalIndex);
    }
    queryString = queryString.trim();
    let resultArray = queryString.split('  |  ');
    if (resultArray.length === 1) {
      resultArray = queryString.split('\n');
    }
    return resultArray;
  }
subject: add list back to query