public static function getRecognizedWords($string)
 {
     $breakdown = new Breakdown($string);
     $words = $breakdown->getWords();
     foreach ($words as $word) {
         if (in_array($word, array("the", "be", "to", "of", "and", "a", "in", "that", "have", "i", "it", "for", "not", "on", "with", "he", "as", "you", "do", "at", "this", "but", "his", "by", "from", "they", "we", "say", "her", "she", "or", "an", "will", "my", "one", "all", "would", "there", "their", "what", "so", "up", "out", "if", "about", "who", "get", "which", "go", "me", "when", "make", "can", "like", "time", "no", "just", "him", "know", "take", "people", "into", "year", "your", "good", "some", "could", "them", "see", "other", "than", "then", "now", "look", "only", "come", "its", "over", "think", "also", "back", "after", "use", "two", "how", "our", "work", "first", "well", "way", "even", "new", "want", "because", "any", "these", "give", "day", "most", "us"))) {
             $count++;
         }
     }
     return number_format($count / count($words), 2);
 }
<?php

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
require_once "../internals.php";
init_database();
require_once "../lib/ScoreTools.php";
require_once "../lib/DB/Score.php";
require_once "../lib/DB/Breakdown.php";
$postdata = file_get_contents("php://input");
$request = json_decode($postdata);
$score = isset($request->score_id) ? Score::FromId($request->score_id) : Breakdown::FromId($request->breakdown_id);
if (!$score) {
    die;
}
if ($request->type == "prev") {
    $list = ScoreTools::prevList($score, (int) $request->amount);
} else {
    $list = ScoreTools::nextList($score, (int) $request->amount);
}
$last = array_pop($list);
echo ScoreTools::build($last)->run()->approx_stamp();