diff --git a/static/style.css b/static/style.css index e6c80dd..641e440 100644 --- a/static/style.css +++ b/static/style.css @@ -362,7 +362,7 @@ span.mono { font-family: monospace; } span.light { color: #CCC; } span.medium { color: #AAA; } -span.source-confidence { font-weight: bold; } +span.source-similarity { font-weight: bold; } span.source-suspect { color: #900; } span.source-possible { color: #990; } span.source-novio { color: #090; } diff --git a/templates/api.mako b/templates/api.mako index befaf2f..226e6e0 100644 --- a/templates/api.mako +++ b/templates/api.mako @@ -116,7 +116,7 @@ detail boolean No (default: false) - Whether to include the detailed HTML text comparison available in the regular interface. If not, only the confidence percentage is available. + Whether to include the detailed HTML text comparison available in the regular interface. If not, only the similarity percentage is available. @@ -181,7 +181,7 @@ - +
noskip boolean No (default: false)If a suspected source is found during a check to have a sufficiently high confidence value, the check will end prematurely, and other pending URLs will be skipped. Passing this option will prevent this behavior, resulting in complete (but more time-consuming) checks.If a suspected source is found during a check to have a sufficiently high similarity value, the check will end prematurely, and other pending URLs will be skipped. Passing this option will prevent this behavior, resulting in complete (but more time-consuming) checks.

Responses

@@ -213,13 +213,13 @@ }, "best": { "url": string the URL of the best match found, or null if no matches were found, - "confidence": float the confidence of a violation in the best match, or 0.0 if no matches were found, + "confidence": float the similarity of a violation in the best match, or 0.0 if no matches were found, "violation": string one of "suspected", "possible", or "none" }, "sources": [ { "url": string the URL of the source, - "confidence": float the confidence of a violation in the source, + "confidence": float the similarity of the source to the page checked as a ratio between 0.0 and 1.0, "violation": string one of "suspected", "possible", or "none", "skipped": boolean whether the source was skipped due to the check finishing early (see note about noskip above) or an exclusion, "excluded": boolean whether the source was skipped for being in the excluded URL list @@ -231,7 +231,7 @@ "source": string source text, with shared passages marked with HTML } } -

In the case of action=search, sources will contain one entry for each source checked (or skipped if the check ends early), sorted in order of confidence, with skipped and excluded sources at the bottom.

+

In the case of action=search, sources will contain one entry for each source checked (or skipped if the check ends early), sorted by similarity, with skipped and excluded sources at the bottom.

In the case of action=compare, best will always contain information about the URL that was given, so response["best"]["url"] will never be null. Also, sources will always contain one entry, with the same data as best, since only one source is checked in comparison mode.

Valid responses for action=sites are formatted like this:

{
diff --git a/templates/index.mako b/templates/index.mako
index 1d4a1ac..fa5bc28 100644
--- a/templates/index.mako
+++ b/templates/index.mako
@@ -199,7 +199,7 @@
                         % endif
                     
                     
${round(result.confidence * 100, 1)}%
-
confidence
+
similarity
% if result.url: @@ -252,7 +252,7 @@ URL - Confidence + Similarity Compare % for i, source in enumerate(result.sources): @@ -265,7 +265,7 @@ <% skips = True %> Skipped % else: - = T_SUSPECT else "source-possible" if source.confidence >= T_POSSIBLE else "source-novio"}">${round(source.confidence * 100, 1)}% + = T_SUSPECT else "source-possible" if source.confidence >= T_POSSIBLE else "source-novio"}">${round(source.confidence * 100, 1)}% % endif @@ -281,12 +281,12 @@ % endif % if len(result.sources) > 10: % endif % if skips or result.possible_miss: % endif