Skip to content
Permalink
Browse files

Step 1: Issue Detector

  • Loading branch information...
tlinkowski committed Jan 31, 2019
1 parent 7c73d73 commit aca1aa1e2378e187eb72b7b6d0047e5fb82954da
Showing with 17 additions and 0 deletions.
  1. +7 −0 Issue.java
  2. +6 −0 IssueDetector.java
  3. +4 −0 IssueType.java
@@ -0,0 +1,7 @@
interface Issue {
int startOffset(); // e.g. 4 (start of "migth")

int endOffset(); // e.g. 9 (end of "migth")

IssueType type(); // e.g. SPELLING
}
@@ -0,0 +1,6 @@
import java.util.List;

interface IssueDetector {
// e.g. text: "You migth know it."
List<Issue> detect(String text);
}
@@ -0,0 +1,4 @@
enum IssueType {
GRAMMAR,
SPELLING
}

0 comments on commit aca1aa1

Please sign in to comment.
You can’t perform that action at this time.