Table of contents
  1. 1. Functions
    1. 1.1. capitol.dailySum(word : string, month : string, day : string, year : string) : list
    2. 1.2. capitol.dailySumForMonth(word : string, month : string, year : string) : list
    3. 1.3. capitol.dailySumForMonthTable(word : string, month : string, year : string) : xml
    4. 1.4. capitol.dailySumForYear(word : string, year : string) : list
    5. 1.5. capitol.dailySumForYearTable(word : string, year : string) : xml
    6. 1.6. capitol.dailySumRange(word : string, sYear : string, sMonth : string, sDay : string, eYear : string, eMonth : string, eDay : string) : list
    7. 1.7. capitol.dailySumRangeTable(word : string, sYear : string, sMonth : string, sDay : string, eYear : string, eMonth : string, eDay : string) : xml
    8. 1.8. capitol.dailySumTable(word : string, month : string, day : string, year : string) : xml
    9. 1.9. capitol.lawmakerLatestTopWords(bioguideId : string, words : string) : list
    10. 1.10. capitol.lawmakerLatestTopWordsTable(bioguideId : string, words : string) : xml
    11. 1.11. capitol.lawmakerTopWordsDate(bioguideId : string, year : string, month : string, day : string, words : string) : list
    12. 1.12. capitol.lawmakerTopWordsDateTable(bioguideId : string, year : string, month : string, day : string, words : string) : xml
    13. 1.13. capitol.lawmakerTopWordsMonth(bioguideId : string, year : string, month : string, words : string) : list
    14. 1.14. capitol.lawmakerTopWordsMonthTable(bioguideId : string, year : string, month : string, words : string) : xml
    15. 1.15. capitol.lawmakerTopWordsRange(bioguideId : string, sYear : string, sMonth : string, sDay : string, eYear : string, eMonth : string, eDay : string, words : string) : list
    16. 1.16. capitol.lawmakerTopWordsRangeTable(bioguideId : string, sYear : string, sMonth : string, sDay : string, eYear : string, eMonth : string, eDay : string, words : string) : xml
    17. 1.17. capitol.lawmakerTopWordsYear(bioguideId : string, year : string, words : string) : list
    18. 1.18. capitol.lawmakerTopWordsYearTable(bioguideId : string, year : string, month : string, words : string) : xml
    19. 1.19. capitol.WordOfDay(words : string) : list
    20. 1.20. capitol.WordOfDayDate(words : string, month : string, day : string, year : string) : list
    21. 1.21. capitol.WordOfDayDateTable(words : string, month : string, day : string, year : string) : xml
    22. 1.22. capitol.WordOfDayMonth(words : string, month : string, year : string) : list
    23. 1.23. capitol.WordOfDayMonthTable(words : string, month : string, year : string) : xml
    24. 1.24. capitol.WordOfDayRange(words : string, sYear : string, sMonth : string, sDay : string, eYear : string, eMonth : string, eDay : string) : list
    25. 1.25. capitol.WordOfDayRangeTable(words : string, sYear : string, sMonth : string, sDay : string, eYear : string, eMonth : string, eDay : string) : xml
    26. 1.26. capitol.WordOfDayTable(words : string) : xml
    27. 1.27. capitol.WordOfDayYear(words : string, year : string) : list
    28. 1.28. capitol.WordOfDayYearTable(words : string, year : string) : xml
  2. 2. Script Source
  3. 3. Usage
Vendor
MindTouch
Type Script
Categories Misc
Requires MindTouch Core 1.8.3 or later
Status Stable
License Free/Open Source
Manifest http://scripts.mindtouch.com/sunlight-capitol.xml

 

Install Script
To add  this script to your site, enter the address of your MindTouch installation (ex: http://www.mindtouch.com) and click the Add Script button.  This will open your control panel and prepopulate the necessary values.  You will still need to manually add configuration settings if required.  Note that no changes are made to your site until you confirm the action in your control panel.
Your site address:     


Table of Contents

  1. 1. Functions
    1. 1.1. capitol.dailySum(word : string, month : string, day : string, year : string) : list
    2. 1.2. capitol.dailySumForMonth(word : string, month : string, year : string) : list
    3. 1.3. capitol.dailySumForMonthTable(word : string, month : string, year : string) : xml
    4. 1.4. capitol.dailySumForYear(word : string, year : string) : list
    5. 1.5. capitol.dailySumForYearTable(word : string, year : string) : xml
    6. 1.6. capitol.dailySumRange(word : string, sYear : string, sMonth : string, sDay : string, eYear : string, eMonth : string, eDay : string) : list
    7. 1.7. capitol.dailySumRangeTable(word : string, sYear : string, sMonth : string, sDay : string, eYear : string, eMonth : string, eDay : string) : xml
    8. 1.8. capitol.dailySumTable(word : string, month : string, day : string, year : string) : xml
    9. 1.9. capitol.lawmakerLatestTopWords(bioguideId : string, words : string) : list
    10. 1.10. capitol.lawmakerLatestTopWordsTable(bioguideId : string, words : string) : xml
    11. 1.11. capitol.lawmakerTopWordsDate(bioguideId : string, year : string, month : string, day : string, words : string) : list
    12. 1.12. capitol.lawmakerTopWordsDateTable(bioguideId : string, year : string, month : string, day : string, words : string) : xml
    13. 1.13. capitol.lawmakerTopWordsMonth(bioguideId : string, year : string, month : string, words : string) : list
    14. 1.14. capitol.lawmakerTopWordsMonthTable(bioguideId : string, year : string, month : string, words : string) : xml
    15. 1.15. capitol.lawmakerTopWordsRange(bioguideId : string, sYear : string, sMonth : string, sDay : string, eYear : string, eMonth : string, eDay : string, words : string) : list
    16. 1.16. capitol.lawmakerTopWordsRangeTable(bioguideId : string, sYear : string, sMonth : string, sDay : string, eYear : string, eMonth : string, eDay : string, words : string) : xml
    17. 1.17. capitol.lawmakerTopWordsYear(bioguideId : string, year : string, words : string) : list
    18. 1.18. capitol.lawmakerTopWordsYearTable(bioguideId : string, year : string, month : string, words : string) : xml
    19. 1.19. capitol.WordOfDay(words : string) : list
    20. 1.20. capitol.WordOfDayDate(words : string, month : string, day : string, year : string) : list
    21. 1.21. capitol.WordOfDayDateTable(words : string, month : string, day : string, year : string) : xml
    22. 1.22. capitol.WordOfDayMonth(words : string, month : string, year : string) : list
    23. 1.23. capitol.WordOfDayMonthTable(words : string, month : string, year : string) : xml
    24. 1.24. capitol.WordOfDayRange(words : string, sYear : string, sMonth : string, sDay : string, eYear : string, eMonth : string, eDay : string) : list
    25. 1.25. capitol.WordOfDayRangeTable(words : string, sYear : string, sMonth : string, sDay : string, eYear : string, eMonth : string, eDay : string) : xml
    26. 1.26. capitol.WordOfDayTable(words : string) : xml
    27. 1.27. capitol.WordOfDayYear(words : string, year : string) : list
    28. 1.28. capitol.WordOfDayYearTable(words : string, year : string) : xml
  2. 2. Script Source
  3. 3. Usage

See also How to add a script, Using the Extension Dialog, Learn about DekiScript, Extensions Directory.


Functions

capitol.dailySum(word : string, month : string, day : string, year : string) : list

This extension retrieves the total number of times one word was used on a specific date

Parameters:

NameTypeDescription
wordstringWord
monthstringMonth (ex., 12 for the month of December)
daystringDay of month
yearstringYear


capitol.dailySumForMonth(word : string, month : string, year : string) : list

This extension retrieves the number of times daily one word was used over a month

Parameters:

NameTypeDescription
wordstringWord
monthstringMonth (ex., 12 for the month of December)
yearstringYear


capitol.dailySumForMonthTable(word : string, month : string, year : string) : xml

This extension retrieves the daily number of times one word was used in one month, formatted as a table

Parameters:

NameTypeDescription
wordstringWord
monthstringMonth (ex., 12 for the month of December)
yearstringYear


capitol.dailySumForYear(word : string, year : string) : list

This extension retrieves the number of times daily one word was used over a month

Parameters:

NameTypeDescription
wordstringWord
yearstringYear


capitol.dailySumForYearTable(word : string, year : string) : xml

This extension retrieves the daily number of times one word was used in one year, formatted as a table. The table generated here is quite large.

Parameters:

NameTypeDescription
wordstringWord
yearstringYear


capitol.dailySumRange(word : string, sYear : string, sMonth : string, sDay : string, eYear : string, eMonth : string, eDay : string) : list

This extension retrieves the number of times daily one word was used over a range of dates

Parameters:

NameTypeDescription
wordstringWord
sYearstringStarting year
sMonthstringStarting month (as a number, e.g., 12 for December)
sDaystringStarting day of month
eYearstringEnding year
eMonthstringEnding month (as a number, e.g., 12 for December)
eDaystringEnding day of month


capitol.dailySumRangeTable(word : string, sYear : string, sMonth : string, sDay : string, eYear : string, eMonth : string, eDay : string) : xml

This extension retrieves the number of times daily one word was used over a range of dates, formatted as a sortable table

Parameters:

NameTypeDescription
wordstringWord
sYearstringStarting year
sMonthstringStarting month (as a number, e.g., 12 for December)
sDaystringStarting day of month
eYearstringEnding year
eMonthstringEnding month (as a number, e.g., 12 for December)
eDaystringEnding day of month


capitol.dailySumTable(word : string, month : string, day : string, year : string) : xml

This extension retrieves the number of times one word was used in one day, formatted as a table

Parameters:

NameTypeDescription
wordstringWord
monthstringMonth (ex., 12 for the month of December)
daystringDay of month
yearstringYear


capitol.lawmakerLatestTopWords(bioguideId : string, words : string) : list

This extension retrieves the top words used by a lawmaker for the latest date available

Parameters:

NameTypeDescription
bioguideIdstringBioGuide ID (shown in the URL returned from a profile search at http://bioguide.congress.gov)
wordsstringTotal number of top words to return


capitol.lawmakerLatestTopWordsTable(bioguideId : string, words : string) : xml

This extension retrieves the top words used by a lawmaker for latest date available, formatted as a table

Parameters:

NameTypeDescription
bioguideIdstringBioGuide ID (shown in the URL returned from a profile search at http://bioguide.congress.gov)
wordsstringTotal number of top words to return


capitol.lawmakerTopWordsDate(bioguideId : string, year : string, month : string, day : string, words : string) : list

This extension retrieves the top words used by a lawmaker for a single date

Parameters:

NameTypeDescription
bioguideIdstringBioGuide ID (shown in the URL returned from a profile search at http://bioguide.congress.gov)
yearstringYear
monthstringMonth (as a number, e.g., 12 for December)
daystringDay of month
wordsstringTotal number of top words to return


capitol.lawmakerTopWordsDateTable(bioguideId : string, year : string, month : string, day : string, words : string) : xml

This extension retrieves the top words used by a lawmaker for a single date, formatted as a table

Parameters:

NameTypeDescription
bioguideIdstringBioGuide ID (shown in the URL returned from a profile search at http://bioguide.congress.gov)
yearstringYear
monthstringMonth (as a number, e.g., 12 for December)
daystringDay of month
wordsstringTotal number of top words to return


capitol.lawmakerTopWordsMonth(bioguideId : string, year : string, month : string, words : string) : list

This extension retrieves the top words used by a lawmaker for a single single month

Parameters:

NameTypeDescription
bioguideIdstringBioGuide ID (shown in the URL returned from a profile search at http://bioguide.congress.gov)
yearstringYear
monthstringMonth (as a number, e.g., 12 for December)
wordsstringTotal number of top words to return


capitol.lawmakerTopWordsMonthTable(bioguideId : string, year : string, month : string, words : string) : xml

This extension retrieves the top words used by a lawmaker for a single month, formatted as a table

Parameters:

NameTypeDescription
bioguideIdstringBioGuide ID (shown in the URL returned from a profile search at http://bioguide.congress.gov)
yearstringYear
monthstringMonth (as a number, e.g., 12 for December)
wordsstringTotal number of top words to return


capitol.lawmakerTopWordsRange(bioguideId : string, sYear : string, sMonth : string, sDay : string, eYear : string, eMonth : string, eDay : string, words : string) : list

This extension retrieves the top words used by a lawmaker over a range of dates

Parameters:

NameTypeDescription
bioguideIdstringBioGuide ID (shown in the URL returned from a profile search at http://bioguide.congress.gov)
sYearstringStarting year
sMonthstringStarting month (as a number, e.g., 12 for December)
sDaystringStarting day of month
eYearstringEnding year
eMonthstringEnding month (as a number, e.g., 12 for December)
eDaystringEnding day of month
wordsstringTotal number of top words to return


capitol.lawmakerTopWordsRangeTable(bioguideId : string, sYear : string, sMonth : string, sDay : string, eYear : string, eMonth : string, eDay : string, words : string) : xml

TThis extension retrieves the top words used by a lawmaker over a range of dates, formatted as a sortable table

Parameters:

NameTypeDescription
bioguideIdstringBioGuide ID (shown in the URL returned from a profile search at http://bioguide.congress.gov)
sYearstringStarting year
sMonthstringStarting month (as a number, e.g., 12 for December)
sDaystringStarting day of month
eYearstringEnding year
eMonthstringEnding month (as a number, e.g., 12 for December)
eDaystringEnding day of month
wordsstringTotal number of top words to return


capitol.lawmakerTopWordsYear(bioguideId : string, year : string, words : string) : list

This extension retrieves the top words used by a lawmaker for a single year

Parameters:

NameTypeDescription
bioguideIdstringBioGuide ID (shown in the URL returned from a profile search at http://bioguide.congress.gov)
yearstringYear
wordsstringTotal number of top words to return


capitol.lawmakerTopWordsYearTable(bioguideId : string, year : string, month : string, words : string) : xml

This extension retrieves the top words used by a lawmaker for a single year, formatted as a table

Parameters:

NameTypeDescription
bioguideIdstringBioGuide ID (shown in the URL returned from a profile search at http://bioguide.congress.gov)
yearstringYear
monthstringMonth (as a number, e.g., 12 for December)
wordsstringTotal number of top words to return


capitol.WordOfDay(words : string) : list

This extension retrieves the top words of the day for the last available day.

Parameters:

NameTypeDescription
wordsstringNumber of top words


capitol.WordOfDayDate(words : string, month : string, day : string, year : string) : list

This extension retrieves the top words of the day for a single day.

Parameters:

NameTypeDescription
wordsstringNumber of top words
monthstringMonth (ex., 12 for the month of December)
daystringDay of month
yearstringYear


capitol.WordOfDayDateTable(words : string, month : string, day : string, year : string) : xml

This extension retrieves the top words of the day for a single day, formatted as a table.

Parameters:

NameTypeDescription
wordsstringNumber of top words
monthstringMonth (ex., 12 for the month of December)
daystringDay of month
yearstringYear


capitol.WordOfDayMonth(words : string, month : string, year : string) : list

This extension retrieves the top words of the day for every day for a single month. Note: This may generate a VERY large number of results if the Top Words field is set too high.

Parameters:

NameTypeDescription
wordsstringNumber of top words
monthstringMonth (ex., 12 for the month of December)
yearstringYear


capitol.WordOfDayMonthTable(words : string, month : string, year : string) : xml

This extension retrieves the top words of the day for a each day of a single month, formatted as a table. Note: This may generate a VERY large table and take a long time to loadif the Top Words field is set too high.

Parameters:

NameTypeDescription
wordsstringNumber of top words
monthstringMonth (ex., 12 for the month of December)
yearstringYear


capitol.WordOfDayRange(words : string, sYear : string, sMonth : string, sDay : string, eYear : string, eMonth : string, eDay : string) : list

This extension retrieves the top words of the day for every day for a range of dates. Note: This may generate a VERY large data set if the Top Words field or range is set too high.

Parameters:

NameTypeDescription
wordsstringNumber of top words
sYearstringStarting year
sMonthstringStarting month (as a number, e.g., 12 for December)
sDaystringStarting day of month
eYearstringEnding year
eMonthstringEnding month (as a number, e.g., 12 for December)
eDaystringEnding day of month


capitol.WordOfDayRangeTable(words : string, sYear : string, sMonth : string, sDay : string, eYear : string, eMonth : string, eDay : string) : xml

This extension retrieves the top words of the day for a range of dates, formatted as a table. Note: This may generate a VERY large table if the Top Words field or range is set too high.

Parameters:

NameTypeDescription
wordsstringNumber of top words
sYearstringStarting year
sMonthstringStarting month (as a number, e.g., 12 for December)
sDaystringStarting day of month
eYearstringEnding year
eMonthstringEnding month (as a number, e.g., 12 for December)
eDaystringEnding day of month


capitol.WordOfDayTable(words : string) : xml

This extension retrieves the top words of the day for the last available day, formatted as a table.

Parameters:

NameTypeDescription
wordsstringNumber of top words


capitol.WordOfDayYear(words : string, year : string) : list

This extension retrieves the top words of the day for every day for a single year. This may return a VERY large number of results and take a long time to load if the Top Words field is set higher than 1.

Parameters:

NameTypeDescription
wordsstringNumber of top words
yearstringYear


capitol.WordOfDayYearTable(words : string, year : string) : xml

This extension retrieves the top words of the day for every day for a single year, formatted as a table. Note: This generates a VERY large table and takes a long time to load.

Parameters:

NameTypeDescription
wordsstringNumber of top words
yearstringYear


Script Source

<extension>
  <title>Capitol Words</title>
  <copyright>Copyright (c) 2009, MindTouch, Inc.</copyright>

  <namespace>capitol</namespace>

  <function>
    <name>WordOfDay</name>
    <description>This extension retrieves the top words of the day for the last available day.</description>
    <param name="words" type="string">Number of top words</param>
    <return type="list">
      var api = 'http://capitolwords.org/api/wod/latest' &amp; ('top'.. $words .. '.json');
      var wordResult = web.json(api);
      if(#wordResult &gt; 0){
      [entry foreach var entry in wordResult]
      } else {
      {result:"Word not found."}
      }
    </return>
  </function>
  <function>
    <name>WordOfDayTable</name>
    <description>This extension retrieves the top words of the day for the last available day, formatted as a table.</description>
    <param name="words" type="string">Number of top words</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <body>
          <script src="http://www.kryogenix.org/code/browser/sorttable/sorttable.js"/>
          <eval:block value="var wordList = WordOfDay($words)">
            <table cellspacing="1" cellpadding="1" border="1" width="67%" style="table-layout: fixed;" class="sortable">
              <tbody>
                <tr>
                  <td style="background-color:#6699FF" align="center">
                    <strong>Word of the day for <eval:expr value="date.format(wordList[0].word_date, 'd')"/> (click to sort)</strong>
                  </td>
                  <td style="background-color:#6699FF" align="center">
                    <strong>
                      Wordcount (click to sort)
                    </strong>
                  </td>
                </tr>
                <tr foreach="var wordDaily in wordList">
                  <td>
                    <eval:expr value="wordDaily.word"/>
                  </td>
                  <td>
                    <eval:expr value="wordDaily.word_count"/>
                  </td>
                </tr>
              </tbody>
            </table>
          </eval:block>
        </body>
      </html>
    </return>
  </function>
  <function>
    <name>WordOfDayDate</name>
    <description>This extension retrieves the top words of the day for a single day.</description>
    <param name="words" type="string">Number of top words</param>
    <param name="month" type="string">Month (ex., 12 for the month of December)</param>
    <param name="day" type="string">Day of month</param>
    <param name="year" type="string">Year</param>
    <return type="list">
      var api = 'http://capitolwords.org/api/wod/' &amp; $year &amp; $month &amp; $day &amp; ('top'.. $words .. '.json');
      var wordResult = web.json(api);
      if(#wordResult &gt; 0){
      [entry foreach var entry in wordResult]
      } else {
      {result:"Word not found."}
      }
    </return>
  </function>
  <function>
    <name>WordOfDayDateTable</name>
    <description>This extension retrieves the top words of the day for a single day, formatted as a table.</description>
    <param name="words" type="string">Number of top words</param>
    <param name="month" type="string">Month (ex., 12 for the month of December)</param>
    <param name="day" type="string">Day of month</param>
    <param name="year" type="string">Year</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <body>
          <script src="http://www.kryogenix.org/code/browser/sorttable/sorttable.js"/>
          <eval:block value="var wordList = WordOfDayDate($words, $month, $day, $year)">
            <table cellspacing="1" cellpadding="1" border="1" width="67%" style="table-layout: fixed;" class="sortable">
              <tbody>
                <tr>
                  <td style="background-color:#6699FF" align="center">
                    <strong>Word (click to sort)</strong>
                  </td>
                  <td style="background-color:#6699FF" align="center">
                    <strong>
                      Wordcount (click to sort)
                    </strong>
                  </td>
                </tr>
                <tr foreach="var wordDaily in wordList">
                  <td>
                    <eval:expr value="wordDaily.word"/>
                  </td>
                  <td>
                    <eval:expr value="wordDaily.word_count"/>
                  </td>
                </tr>
              </tbody>
            </table>
          </eval:block>
        </body>
      </html>
    </return>
  </function>
  <function>
    <name>WordOfDayMonth</name>
    <description>This extension retrieves the top words of the day for every day for a single month.  Note: This may generate a VERY large number of results if the Top Words field is set too high.</description>
    <param name="words" type="string">Number of top words</param>
    <param name="month" type="string">Month (ex., 12 for the month of December)</param>
    <param name="year" type="string">Year</param>
    <return type="list">
      var api = 'http://capitolwords.org/api/wod/' &amp; $year &amp; $month &amp; ('top'.. $words .. '.json');
      var wordResult = web.json(api);
      if(#wordResult &gt; 0){
      var wordList = [entry foreach var entry in wordResult];
      list.sort(wordList, "word_date");
      } else {
      {result:"Word not found."}
      }
    </return>
  </function>
  <function>
    <name>WordOfDayMonthTable</name>
    <description>This extension retrieves the top words of the day for a each day of a single month, formatted as a table. Note: This may generate a VERY large table and take a long time to loadif the Top Words field is set too high.</description>
    <param name="words" type="string">Number of top words</param>
    <param name="month" type="string">Month (ex., 12 for the month of December)</param>
    <param name="year" type="string">Year</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <body>
          <script src="http://www.kryogenix.org/code/browser/sorttable/sorttable.js"/>
          <eval:block value="var wordList = WordOfDayMonth($words, $month, $year)">
            <table cellspacing="1" cellpadding="1" border="1" width="67%" style="table-layout: fixed;" class="sortable">
              <tbody>
                <tr>
                <td style="background-color:#6699FF" align="center">
                  <strong>Date (click to sort)</strong>
                </td>
                  <td style="background-color:#6699FF" align="center">
                    <strong>Word (click to sort)</strong>
                  </td>
                  <td style="background-color:#6699FF" align="center">
                    <strong>
                      Wordcount (click to sort)
                    </strong>
                  </td>
                </tr>
                <tr foreach="var wordDaily in wordList">
                  <td>
                    <eval:expr value="date.format(wordDaily.word_date, 'd')"/>
                  </td>
                  <td>
                    <eval:expr value="wordDaily.word"/>
                  </td>
                  <td>
                    <eval:expr value="wordDaily.word_count"/>
                  </td>
                </tr>
              </tbody>
            </table>
          </eval:block>
        </body>
      </html>
    </return>
  </function>
  <function>
    <name>WordOfDayYear</name>
    <description>This extension retrieves the top words of the day for every day for a single year. This may return a VERY large number of results and take a long time to load if the Top Words field is set higher than 1.</description>
    <param name="words" type="string">Number of top words</param>
    <param name="year" type="string">Year</param>
    <return type="list">
      var api = 'http://capitolwords.org/api/wod/' &amp; $year &amp; ('top'.. $words .. '.json');
      var wordResult = web.json(api);
      if(#wordResult &gt; 0){
      var wordList = [entry foreach var entry in wordResult];
      list.sort(wordList, "word_date");
      } else {
      {result:"Word not found."}
      }
    </return>
  </function>
  <function>
    <name>WordOfDayYearTable</name>
    <description>This extension retrieves the top words of the day for every day for a single year, formatted as a table. Note: This generates a VERY large table and takes a long time to load.</description>
    <param name="words" type="string">Number of top words</param>
    <param name="year" type="string">Year</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <body>
          <script src="http://www.kryogenix.org/code/browser/sorttable/sorttable.js"/>
          <eval:block value="var wordList = WordOfDayYear($words, $year)">
            <table cellspacing="1" cellpadding="1" border="1" width="67%" style="table-layout: fixed;" class="sortable">
              <tbody>
                <tr>
                <td style="background-color:#6699FF" align="center">
                  <strong>Date (click to sort)</strong>
                </td>
                  <td style="background-color:#6699FF" align="center">
                    <strong>Word (click to sort)</strong>
                  </td>
                  <td style="background-color:#6699FF" align="center">
                    <strong>
                      Wordcount (click to sort)
                    </strong>
                  </td>
                </tr>
                <tr foreach="var wordDaily in wordList">
                  <td>
                    <eval:expr value="wordDaily.word_date"/>
                  </td>
                  <td>
                    <eval:expr value="wordDaily.word"/>
                  </td>
                  <td>
                    <eval:expr value="wordDaily.word_count"/>
                  </td>
                </tr>
              </tbody>
            </table>
          </eval:block>
        </body>
      </html>
    </return>
  </function>
  <function>
    <name>WordOfDayRange</name>
    <description>This extension retrieves the top words of the day for every day for a range of dates. Note: This may generate a VERY large data set if the Top Words field or range is set too high.</description>
    <param name="words" type="string">Number of top words</param>
    <param name="sYear" type="string">Starting year</param>
    <param name="sMonth" type="string">Starting month (as a number, e.g., 12 for December)</param>
    <param name="sDay" type="string">Starting day of month</param>
    <param name="eYear" type="string">Ending year</param>
    <param name="eMonth" type="string">Ending month (as a number, e.g., 12 for December)</param>
    <param name="eDay" type="string">Ending day of month</param>
    <return type="list">
      var api = 'http://capitolwords.org/api/wod/' &amp; $sYear &amp; $sMonth &amp; $sDay &amp; $eYear &amp; $eMonth &amp; $eDay &amp; ('top'.. $words .. '.json');
      var wordResult = web.json(api);
      if(#wordResult &gt; 0){
      var wordList = [entry foreach var entry in wordResult];
      list.sort(wordList, "word_date");
      } else {
      {result:"Word not found."}
      }
    </return>
  </function>
  <function>
    <name>WordOfDayRangeTable</name>
    <description>This extension retrieves the top words of the day for a range of dates, formatted as a table. Note: This may generate a VERY large table if the Top Words field or range is set too high.</description>
    <param name="words" type="string">Number of top words</param>
    <param name="sYear" type="string">Starting year</param>
    <param name="sMonth" type="string">Starting month (as a number, e.g., 12 for December)</param>
    <param name="sDay" type="string">Starting day of month</param>
    <param name="eYear" type="string">Ending year</param>
    <param name="eMonth" type="string">Ending month (as a number, e.g., 12 for December)</param>
    <param name="eDay" type="string">Ending day of month</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <body>
          <script src="http://www.kryogenix.org/code/browser/sorttable/sorttable.js"/>
          <eval:block value="var wordList = WordOfDayRange($words, $sYear, $sMonth, $sDay, $eYear, $eMonth, $eDay)">
            <table cellspacing="1" cellpadding="1" border="1" width="67%" style="table-layout: fixed;" class="sortable">
              <tbody>
                <tr>
                <td style="background-color:#6699FF" align="center">
                  <strong>Date (click to sort)</strong>
                </td>
                  <td style="background-color:#6699FF" align="center">
                    <strong>Word (click to sort)</strong>
                  </td>
                  <td style="background-color:#6699FF" align="center">
                    <strong>
                      Wordcount (click to sort)
                    </strong>
                  </td>
                </tr>
                <tr foreach="var wordDaily in wordList">
                  <td>
                    <eval:expr value="wordDaily.word_date"/>
                  </td>
                  <td>
                    <eval:expr value="wordDaily.word"/>
                  </td>
                  <td>
                    <eval:expr value="wordDaily.word_count"/>
                  </td>
                </tr>
              </tbody>
            </table>
          </eval:block>
        </body>
      </html>
    </return>
  </function>

  
  
  
  <function>
    <name>dailySum</name>
    <description>This extension retrieves the total number of times one word was used on a specific date</description>
    <param name="word" type="string">Word</param>
    <param name="month" type="string">Month (ex., 12 for the month of December)</param>
    <param name="day" type="string">Day of month</param>
    <param name="year" type="string">Year</param>
    <return type="list">
      var api = 'http://capitolwords.org/api/word/' &amp; $word &amp; '/' &amp; $year &amp; '/' &amp; $month &amp; '/' &amp; $day &amp; '/' &amp; 'feed.json';
      var wordResult = web.json(api);
      if(#wordResult &gt; 0){
      [entry foreach var entry in wordResult]
      } else {
      {result:"Word not found."}
      }
    </return>
  </function>
  <function>
    <name>dailySumTable</name>
    <description>This extension retrieves the number of times one word was used in one day, formatted as a table</description>
    <param name="word" type="string">Word</param>
    <param name="month" type="string">Month (ex., 12 for the month of December)</param>
    <param name="day" type="string">Day of month </param>
    <param name="year" type="string">Year</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <body>
          <script src="http://www.kryogenix.org/code/browser/sorttable/sorttable.js"/>
          <eval:block value="var wordList = dailySum($word, $month, $day, $year)">
            <table cellspacing="1" cellpadding="1" border="1" width="67%" style="table-layout: fixed;" class="sortable">
              <tbody>
                <tr>
                  <td style="background-color:#6699FF" align="center">
                    <strong>Date (click to sort)</strong>
                  </td>
                  <td style="background-color:#6699FF" align="center">
                    <strong>
                      Wordcount for "<eval:expr value="$word"/>" (click to sort)
                    </strong>
                  </td>
                </tr>
                <tr foreach="var wordDaily in wordList">
                  <td>
                    <eval:expr value="date.format(wordDaily.word_date, 'd')"/>
                  </td>
                  <td>
                    <eval:expr value="wordDaily.word_count"/>
                  </td>
                </tr>
              </tbody>
            </table>
          </eval:block>
        </body>
      </html>
    </return>
  </function>
  <function>
    <name>dailySumForMonth</name>
    <description>This extension retrieves the number of times daily one word was used over a month</description>
    <param name="word" type="string">Word</param>
    <param name="month" type="string">Month (ex., 12 for the month of December)</param>
    <param name="year" type="string">Year</param>
    <return type="list">
      var api = 'http://capitolwords.org/api/word/' &amp; $word &amp; $year &amp; $month &amp; 'feed.json';
      var wordResult = web.json(api);
      if(#wordResult &gt; 0){
      var wordList=[entry foreach var entry in wordResult];
      list.sort(wordList, "word_date");
      } else {
      {result:"Word not found."}
      }
    </return>
  </function>
  <function>
    <name>dailySumForYear</name>
    <description>This extension retrieves the number of times daily one word was used over a month</description>
    <param name="word" type="string">Word</param>
    <param name="year" type="string">Year</param>
    <return type="list">
      var api = 'http://capitolwords.org/api/word/' &amp; $word &amp; '/' &amp; $year &amp; '/' &amp; '/' &amp; 'feed.json';
      var wordResult = web.json(api);
      if(#wordResult &gt; 0){
      var wordList=[entry foreach var entry in wordResult];
      list.sort(wordList, "word_date");
      } else {
      {result:"Word not found."}
      }
    </return>
  </function>
  <function>
    <name>dailySumForMonthTable</name>
    <description>This extension retrieves the daily number of times one word was used in one month, formatted as a table</description>
    <param name="word" type="string">Word</param>
    <param name="month" type="string">Month (ex., 12 for the month of December)</param>
    <param name="year" type="string">Year</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <body>
          <script src="http://www.kryogenix.org/code/browser/sorttable/sorttable.js"/>
          <eval:block value="var wordList = dailySumForMonth($word, $month, $year)">
            <table cellspacing="1" cellpadding="1" border="1" width="67%" style="table-layout: fixed;" class="sortable">
              <tbody>
                <tr>
                  <td style="background-color:#6699FF" align="center">
                    <strong>Date (click to sort)</strong>
                  </td>
                  <td style="background-color:#6699FF" align="center">
                    <strong># Wordcount for "<eval:expr value="$word"/>" (click to sort)
                    </strong>
                  </td>
                </tr>
                  <tr foreach="var wordDaily in wordList">
                    <td>
                      <eval:expr value="date.format(wordDaily.word_date, 'd')"/>
                    </td>
                    <td>
                      <eval:expr value="wordDaily.word_count"/>
                    </td>
                  </tr>
              </tbody>
            </table>
          </eval:block>
          </body>
    </html>
    </return>
  </function>
  <function>
    <name>dailySumForYearTable</name>
    <description>This extension retrieves the daily number of times one word was used in one year, formatted as a table. The table generated here is quite large.</description>
    <param name="word" type="string">Word</param>
    <param name="year" type="string">Year</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <body>
          <script src="http://www.kryogenix.org/code/browser/sorttable/sorttable.js"/>
          <eval:block value="var wordList = dailySumForYear($word, $year)">
            <table cellspacing="1" cellpadding="1" border="1" width="67%" style="table-layout: fixed;" class="sortable">
              <tbody>
                <tr>
                  <td style="background-color:#6699FF" align="center">
                    <strong>Date (click to sort)</strong>
                  </td>
                  <td style="background-color:#6699FF" align="center">
                    <strong>
                      Wordcount for "<eval:expr value="$word"/>" (click to sort)
                    </strong>
                  </td>
                </tr>
                <tr foreach="var wordDaily in wordList">
                  <td>
                    <eval:expr value="date.format(wordDaily.word_date, 'd')"/>
                  </td>
                  <td>
                    <eval:expr value="wordDaily.word_count"/>
                  </td>
                </tr>
              </tbody>
            </table>
          </eval:block>
        </body>
      </html>
    </return>
  </function>
  <function>
    <name>dailySumRange</name>
    <description>This extension retrieves the number of times daily one word was used over a range of dates</description>
    <param name="word" type="string">Word</param>
    <param name="sYear" type="string">Starting year</param>
    <param name="sMonth" type="string">Starting month (as a number, e.g., 12 for December)</param>
    <param name="sDay" type="string">Starting day of month</param>
    <param name="eYear" type="string">Ending year</param>
    <param name="eMonth" type="string">Ending month (as a number, e.g., 12 for December)</param>
    <param name="eDay" type="string">Ending day of month</param>
    <return type="list">
      var api = 'http://capitolwords.org/api/word/' &amp; $word &amp; '/' &amp; $sYear &amp; '/' &amp; $sMonth &amp; '/' &amp; $sDay &amp; '/' &amp; $eYear &amp; '/' &amp; $eMonth &amp; '/' &amp; $eDay &amp; '/' &amp; 'feed.json';
      var wordResult = web.json(api);
      if(#wordResult &gt; 0){
      var wordList=[entry foreach var entry in wordResult];
      list.sort(wordList, "word_date");
      } else {
      {result:"Word not found."}
      }
    </return>
  </function>
  <function>
    <name>dailySumRangeTable</name>
    <description>This extension retrieves the number of times daily one word was used over a range of dates, formatted as a sortable table</description>
    <param name="word" type="string">Word</param>
    <param name="sYear" type="string">Starting year</param>
    <param name="sMonth" type="string">Starting month (as a number, e.g., 12 for December)</param>
    <param name="sDay" type="string">Starting day of month</param>
    <param name="eYear" type="string">Ending year</param>
    <param name="eMonth" type="string">Ending month (as a number, e.g., 12 for December)</param>
    <param name="eDay" type="string">Ending day of month</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <body>
          <script src="http://www.kryogenix.org/code/browser/sorttable/sorttable.js"/>
          <eval:block value="var wordList = dailySumRange($word, $sYear, $sMonth, $sDay, $eYear, $eMonth, $eDay)">
            <table cellspacing="1" cellpadding="1" border="1" width="67%" style="table-layout: fixed;" class="sortable">
              <tbody>
                <tr>
                  <td style="background-color:#6699FF" align="center">
                    <strong>Date (click to sort)</strong>
                  </td>
                  <td style="background-color:#6699FF" align="center">
                    <strong>
                      Wordcount "<eval:expr value="$word"/>" (click to sort)
                    </strong>
                  </td>
                </tr>
                <tr foreach="var wordRange in wordList">
                  <td>
                    <eval:expr value="date.format(wordRange.word_date, 'd')"/>
                  </td>
                  <td>
                    <eval:expr value="wordRange.word_count"/>
                  </td>
                </tr>
              </tbody>
            </table>
          </eval:block>
        </body>
      </html>
    </return>
  </function>
  <function>
    <name>lawmakerLatestTopWords</name>
    <description>This extension retrieves the top words used by a lawmaker for the latest date available</description>
    <param name="bioguideId" type="string">BioGuide ID (shown in the URL returned from a profile search at http://bioguide.congress.gov)</param>
    <param name="words" type="string">Total number of top words to return</param>
    <return type="list">
      var api = 'http://capitolwords.org/api/lawmaker/' &amp; $bioguideId &amp; 'latest' &amp; ('top' .. $words .. '.json');
      var wordResult = web.json(api);
      if(#wordResult &gt; 0){
      var wordList=[entry foreach var entry in wordResult];
      list.sort(wordList, "word_date");
      } else {
      {result:"Word not found."}
      }
    </return>
  </function>
  <function>
    <name>lawmakerLatestTopWordsTable</name>
    <description>This extension retrieves the top words used by a lawmaker for latest date available, formatted as a table</description>
    <param name="bioguideId" type="string">BioGuide ID (shown in the URL returned from a profile search at http://bioguide.congress.gov)</param>
    <param name="words" type="string">Total number of top words to return</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <body>
          <script src="http://www.kryogenix.org/code/browser/sorttable/sorttable.js"/>
          <eval:block value="var wordList = lawmakerLatestTopWords($bioguideId, $words)">
            <table cellspacing="1" cellpadding="1" border="1" width="67%" style="table-layout: fixed;" class="sortable">
              <tbody>
                <tr>
                  <td style="background-color:#6699FF" align="center">
                    <strong>Word (click to sort)</strong>
                  </td>
                  <td style="background-color:#6699FF" align="center">
                    <strong>
                      Wordcount (click to sort)
                    </strong>
                  </td>
                </tr>
                <tr foreach="var wordLatest in wordList">
                  <td>
                    <eval:expr value="wordLatest.word"/>
                  </td>
                  <td>
                    <eval:expr value="wordLatest.word_count"/>
                  </td>
                </tr>
              </tbody>
            </table>
          </eval:block>
        </body>
      </html>
    </return>
  </function>
  <function>
    <name>lawmakerTopWordsDate</name>
    <description>This extension retrieves the top words used by a lawmaker for a single date</description>
    <param name="bioguideId" type="string">BioGuide ID (shown in the URL returned from a profile search at http://bioguide.congress.gov)</param>
    <param name="year" type="string">Year</param>
    <param name="month" type="string">Month (as a number, e.g., 12 for December)</param>
    <param name="day" type="string">Day of month</param>
    <param name="words" type="string">Total number of top words to return</param>
    <return type="list">
      var api = 'http://capitolwords.org/api/lawmaker/' &amp; $bioguideId &amp; $year &amp; $month &amp; $day &amp; ('top' .. $words .. '.json');
      var wordResult = web.json(api);
      if(#wordResult &gt; 0){
      var wordList=[entry foreach var entry in wordResult];
      list.sort(wordList, "word_date");
      } else {
      {result:"Word not found."}
      }
    </return>
  </function>
  <function>
    <name>lawmakerTopWordsDateTable</name>
    <description>This extension retrieves the top words used by a lawmaker for a single date, formatted as a table</description>
    <param name="bioguideId" type="string">BioGuide ID (shown in the URL returned from a profile search at http://bioguide.congress.gov)</param>
    <param name="year" type="string">Year</param>
    <param name="month" type="string">Month (as a number, e.g., 12 for December)</param>
    <param name="day" type="string">Day of month</param>
    <param name="words" type="string">Total number of top words to return</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <body>
          <script src="http://www.kryogenix.org/code/browser/sorttable/sorttable.js"/>
          <eval:block value="var wordList = lawmakerTopWordsDate($bioguideId, $year, $month, $day, $words)">
            <table cellspacing="1" cellpadding="1" border="1" width="67%" style="table-layout: fixed;" class="sortable">
              <tbody>
                <tr>
                  <td style="background-color:#6699FF" align="center">
                    <strong>Word (click to sort)</strong>
                  </td>
                  <td style="background-color:#6699FF" align="center">
                    <strong>
                      Wordcount (click to sort)
                    </strong>
                  </td>
                </tr>
                <tr foreach="var wordMonthly in wordList">
                  <td>
                    <eval:expr value="wordMonthly.word"/>
                  </td>
                  <td>
                    <eval:expr value="wordMonthly.word_count"/>
                  </td>
                </tr>
              </tbody>
            </table>
          </eval:block>
        </body>
      </html>
    </return>
  </function>
  <function>
    <name>lawmakerTopWordsMonth</name>
    <description>This extension retrieves the top words used by a lawmaker for a single single month</description>
    <param name="bioguideId" type="string">BioGuide ID (shown in the URL returned from a profile search at http://bioguide.congress.gov)</param>
    <param name="year" type="string">Year</param>
    <param name="month" type="string">Month (as a number, e.g., 12 for December)</param>
    <param name="words" type="string">Total number of top words to return</param>
    <return type="list">
      var api = 'http://capitolwords.org/api/lawmaker/' &amp; $bioguideId &amp; $year &amp; $month &amp; ('top' .. $words .. '.json');
      var wordResult = web.json(api);
      if(#wordResult &gt; 0){
      var wordList=[entry foreach var entry in wordResult];
      list.sort(wordList, "word_date");
      } else {
      {result:"Word not found."}
      }
    </return>
  </function>
  <function>
    <name>lawmakerTopWordsMonthTable</name>
    <description>This extension retrieves the top words used by a lawmaker for a single month, formatted as a table</description>
    <param name="bioguideId" type="string">BioGuide ID (shown in the URL returned from a profile search at http://bioguide.congress.gov)</param>
    <param name="year" type="string">Year</param>
    <param name="month" type="string">Month (as a number, e.g., 12 for December)</param>
    <param name="words" type="string">Total number of top words to return</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <body>
          <script src="http://www.kryogenix.org/code/browser/sorttable/sorttable.js"/>
          <eval:block value="var wordList = lawmakerTopWordsMonth($bioguideId, $year, $month, $words)">
            <table cellspacing="1" cellpadding="1" border="1" width="67%" style="table-layout: fixed;" class="sortable">
              <tbody>
                <tr>
                  <td style="background-color:#6699FF" align="center">
                    <strong>Word (click to sort)</strong>
                  </td>
                  <td style="background-color:#6699FF" align="center">
                    <strong>
                      Wordcount (click to sort)
                    </strong>
                  </td>
                </tr>
                <tr foreach="var wordMonthly in wordList">
                  <td>
                    <eval:expr value="wordMonthly.word"/>
                  </td>
                  <td>
                    <eval:expr value="wordMonthly.word_count"/>
                  </td>
                </tr>
              </tbody>
            </table>
          </eval:block>
        </body>
      </html>
    </return>
  </function>
  <function>
    <name>lawmakerTopWordsYear</name>
    <description>This extension retrieves the top words used by a lawmaker for a single year</description>
    <param name="bioguideId" type="string">BioGuide ID (shown in the URL returned from a profile search at http://bioguide.congress.gov)</param>
    <param name="year" type="string">Year</param>
    <param name="words" type="string">Total number of top words to return</param>
    <return type="list">
      var api = 'http://capitolwords.org/api/lawmaker/' &amp; $bioguideId &amp; $year &amp; ('top' .. $words .. '.json');
      var wordResult = web.json(api);
      if(#wordResult &gt; 0){
      var wordList=[entry foreach var entry in wordResult];
      list.sort(wordList, "word_date");
      } else {
      {result:"Word not found."}
      }
    </return>
  </function>
  <function>
    <name>lawmakerTopWordsYearTable</name>
    <description>This extension retrieves the top words used by a lawmaker for a single year, formatted as a table</description>
    <param name="bioguideId" type="string">BioGuide ID (shown in the URL returned from a profile search at http://bioguide.congress.gov)</param>
    <param name="year" type="string">Year</param>
    <param name="month" type="string">Month (as a number, e.g., 12 for December)</param>
    <param name="words" type="string">Total number of top words to return</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <body>
          <script src="http://www.kryogenix.org/code/browser/sorttable/sorttable.js"/>
          <eval:block value="var wordList = lawmakerTopWordsYear($bioguideId, $year, $words)">
            <table cellspacing="1" cellpadding="1" border="1" width="67%" style="table-layout: fixed;" class="sortable">
              <tbody>
                <tr>
                  <td style="background-color:#6699FF" align="center">
                    <strong>Word (click to sort)</strong>
                  </td>
                  <td style="background-color:#6699FF" align="center">
                    <strong>
                      Wordcount (click to sort)
                    </strong>
                  </td>
                </tr>
                <tr foreach="var wordYearly in wordList">
                  <td>
                    <eval:expr value="wordYearly.word"/>
                  </td>
                  <td>
                    <eval:expr value="wordYearly.word_count"/>
                  </td>
                </tr>
              </tbody>
            </table>
          </eval:block>
        </body>
      </html>
    </return>
  </function>
  <function>
    <name>lawmakerTopWordsRange</name>
    <description>This extension retrieves the top words used by a lawmaker over a range of dates</description>
    <param name="bioguideId" type="string">BioGuide ID (shown in the URL returned from a profile search at http://bioguide.congress.gov)</param>
    <param name="sYear" type="string">Starting year</param>
    <param name="sMonth" type="string">Starting month (as a number, e.g., 12 for December)</param>
    <param name="sDay" type="string">Starting day of month</param>
    <param name="eYear" type="string">Ending year</param>
    <param name="eMonth" type="string">Ending month (as a number, e.g., 12 for December)</param>
    <param name="eDay" type="string">Ending day of month</param>
    <param name="words" type="string">Total number of top words to return</param>
    <return type="list">
      var api = 'http://capitolwords.org/api/lawmaker/' &amp; $bioguideId &amp; '/' &amp; $sYear &amp; '/' &amp; $sMonth &amp; '/' &amp; $sDay &amp; '/' &amp; $eYear &amp; '/' &amp; $eMonth &amp; '/' &amp; $eDay &amp; ('top'..$words..'.json');
      var wordResult = web.json(api);
      if(#wordResult &gt; 0){
      var wordList=[entry foreach var entry in wordResult];
      list.sort(wordList, "word_date");
      } else {
      {result:"Word not found."}
      }
    </return>
  </function>
  <function>
    <name>lawmakerTopWordsRangeTable</name>
    <description>TThis extension retrieves the top words used by a lawmaker over a range of dates, formatted as a sortable table</description>
    <param name="bioguideId" type="string">BioGuide ID (shown in the URL returned from a profile search at http://bioguide.congress.gov)</param>
    <param name="sYear" type="string">Starting year</param>
    <param name="sMonth" type="string">Starting month (as a number, e.g., 12 for December)</param>
    <param name="sDay" type="string">Starting day of month</param>
    <param name="eYear" type="string">Ending year</param>
    <param name="eMonth" type="string">Ending month (as a number, e.g., 12 for December)</param>
    <param name="eDay" type="string">Ending day of month</param>
    <param name="words" type="string">Total number of top words to return</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <body>
          <script src="http://www.kryogenix.org/code/browser/sorttable/sorttable.js"/>
          <eval:block value="var wordList = lawmakerTopWordsRange($bioguideId, $sYear, $sMonth, $sDay, $eYear, $eMonth, $eDay, $words)">
            <table cellspacing="1" cellpadding="1" border="1" width="67%" style="table-layout: fixed;" class="sortable">
              <tbody>
                <tr>
                  <td style="background-color:#6699FF" align="center">
                    <strong>Date (click to sort)</strong>
                  </td>
                  <td style="background-color:#6699FF" align="center">
                    <strong>
                      Wordcount (click to sort)
                    </strong>
                  </td>
                </tr>
                <tr foreach="var wordRange in wordList">
                  <td>
                    <eval:expr value="wordRange.word "/>
                  </td>
                  <td>
                    <eval:expr value="wordRange.word_count"/>
                  </td>
                </tr>
              </tbody>
            </table>
          </eval:block>
        </body>
      </html>
    </return>
  </function>
</extension>

Usage

{{ capitol.WordOfDay{words: "5"} }}

[ { word : "health", word_count : 1082, word_date : "2010-03-16" }, { word : "care", word_count : 877, word_date : "2010-03-16" }, { word : "insurance", word_count : 392, word_date : "2010-03-16" }, { word : "reform", word_count : 378, word_date : "2010-03-16" }, { word : "percent", word_count : 255, word_date : "2010-03-16" } ]

Tag page (Edit tags)
You must login to post a comment.