Commit dd38b617 authored by Manuel  Segimon's avatar Manuel Segimon
Browse files

Add full language name in selection

parent 8ace970f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -236,6 +236,10 @@ Added executables to the project so that reviewers can easily run the program an

Implemented corrector feedback system in GUI, which allows the user to select the best correction from a list of suggestions

Implement no correction needed message in GUI for both corrector and checker

Implemented find closest word for words not in the TrieNode, when running the corrector

### Tejas Singh
Worked on base functionality of crawler: implemented Jsoup, basic data structures (such as the URL queue), and CLI (for use with files).

+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ public class MainApp extends JFrame {

        // Check if metadata file exists
        if (!Files.exists(Paths.get("metadata.ser"))) {
            String[] languages = {"en", "gr", "pt", "it"};
            String[] languages = {"English", "German", "Portuguese", "Italian"};
            String selectedLanguage = (String) JOptionPane.showInputDialog(this, "Metadata file not found. Please choose a language to build off of. \n(If you want to build from scratch just click Cancel)", "Language Selection", JOptionPane.PLAIN_MESSAGE, null, languages, languages[0]);
            if (selectedLanguage != null) {
                crawler webCrawler = new crawler();
+4 −4
Original line number Diff line number Diff line
@@ -144,13 +144,13 @@ public class crawler {

    public void build(String language) {
        String corpus = "";
        if (language.equals("en")) {
        if (language.equals("English")) {
            corpus = "brown.txt";
        } else if (language.equals("gr")) {
        } else if (language.equals("German")) {
            corpus = "germanSmall.txt";
        } else if (language.equals("it")) {
        } else if (language.equals("Italian")) {
            corpus = "italianSmall.txt";
        } else if (language.equals("pt")) {
        } else if (language.equals("Portuguese")) {
            corpus = "portugueseSmall.txt";
        } else {
            System.err.println("Unsupported language: " + language);