def srs_items_by_type(item_type)
      raise ArgumentError, "Please use a valid SRS type." if !ITEM_TYPES.include?(item_type) || item_type == "all"

      items_by_type = []
      %w(radicals kanji vocabulary).each do |type|
        items = send("#{type}_list")
        items.reject! { |item| item["user_specific"].nil? || item["user_specific"]["srs"] != item_type }.map! do |item|
          item.merge!("type" => (type == 'radicals' ? 'radical' : type))
        end
        items_by_type << items
      end

      items_by_type.flatten
    end
def srs_items_by_type(item_type)
      raise ArgumentError, "Please use a valid SRS type." if !ITEM_TYPES.include?(item_type) || item_type == "all"

      items_by_type = []
      %w(radicals kanji vocabulary).each do |type|
        items = send("#{type}_list")
        items.reject! { |item| item["user_specific"].nil? || item["user_specific"]["srs"] != item_type }.map! do |item|
          item.merge!("type" => (type == 'radicals' ? 'radical' : type))
        end
        items_by_type << items
      end

      items_by_type.flatten
    end
Gets all items for a specific SRS level.

 @param item_type [String] the SRS level for the items returned.
 @return [Array<Hash>] all the items matching the specified SRS for each level for the user.