Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
Step 3: Probable Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tlinkowski committed Jan 31, 2019
1 parent 370642e commit fbd02ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Issue.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ interface Issue {
int endOffset(); // e.g. 9 (end of "migth")

IssueType type(); // e.g. SPELLING

double probability(); // e.g. 0.7836
}
2 changes: 1 addition & 1 deletion IssueDetector.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

interface IssueDetector {
// e.g. text: "You migth know it.", probabilityThreshold: 0.75
List<Issue> detect(String text, double probabilityThreshold);
List<ProbableIssue> detect(String text, double probabilityThreshold);
}
3 changes: 3 additions & 0 deletions ProbableIssue.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
interface ProbableIssue extends Issue {
double probability(); // e.g. 0.7836
}

0 comments on commit fbd02ec

Please sign in to comment.