1. Connect
JOIN EDITZ

Function get_user_percentage

Function Name: get_user_percentage
Description: Get a users correct percentage for each correction type
Parameters:

  • user: Optional. If specified will filter the results for the specified username, otherwise will filter for current user.
  • type: The type of error to filter the results, the percentage and counts will be presented for the specified type. The possible values are the following:
    • only_total: Return percentage totals considering the info of all error types.
    • grammar: Return only grammar error type.
    • factual: Return only factual error type.
    • spelling: Return only spelling error type.
    • other: Return only other error type.
    • all: Return a list of percentages for all error types, but spitted by error type.

Return:

  • status: The status of the result, 0 for OK, 1 for error (look at the error code and messages)
  • total: Total errors reported by the user.
  • accepted: The number of errors accepted from those reported.
  • percentage: A percentage of errors accepted in relation with the total.
  • type: The type of error that was requested.
  • username: The username that was used for the filter.