From 33ca2d7aab7405cff287ac2248079fe60fee779a Mon Sep 17 00:00:00 2001 From: bjculkin Date: Tue, 4 Apr 2017 20:48:03 -0400 Subject: POM changes --- pom.xml | 19 ++++++++++- .../java/bjc/inflexion/InflexionTester.java | 38 ++++++++++------------ 2 files changed, 36 insertions(+), 21 deletions(-) diff --git a/pom.xml b/pom.xml index d577778..ef23700 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,9 @@ 0.0.1-SNAPSHOT Inflexion Java based implementation of Damian Conway's Lingua::EN::Inflexion module for perl - + + bjc.dicelang.DiceLangConsole + Apache License, Version 2.0 @@ -29,6 +31,21 @@ 1.8 + + org.codehaus.mojo + exec-maven-plugin + 1.5.0 + + java + + -agentlib:jdwp=transport=dt_socket,server=y,suspend=n + -classpath + + ${main.class} + + ${main.class} + + diff --git a/src/examples/java/bjc/inflexion/InflexionTester.java b/src/examples/java/bjc/inflexion/InflexionTester.java index ef34ea7..4123378 100644 --- a/src/examples/java/bjc/inflexion/InflexionTester.java +++ b/src/examples/java/bjc/inflexion/InflexionTester.java @@ -58,26 +58,24 @@ public class InflexionTester { Scanner scn = new Scanner(System.in); - wikitest(scn, nounDB); - - /* - * System.out. - * print("Enter a noun to inflect (blank line to quit): "); - * String ln = scn.nextLine().trim(); - * - * while(!ln.equals("")) { System.out.println(); - * - * Noun noun = nounDB.getNoun(ln); - * - * if(noun == null) { - * System.out.println("No inflection available for noun " + ln); - * } else { System.out.printf(OUTPUT_FMT, ln, noun.singular(), - * noun.modernPlural(), noun.classicalPlural()); } - * - * System.out. - * print("Enter a noun to inflect (blank line to quit): "); ln = - * scn.nextLine().trim(); } - */ + System.out.print("Enter a noun to inflect (blank line to quit): "); + String ln = scn.nextLine().trim(); + + while(!ln.equals("")) { + System.out.println(); + + Noun noun = nounDB.getNoun(ln); + + if(noun == null) { + System.out.println("No inflection available for noun " + ln); + } else { + System.out.printf(OUTPUT_FMT, ln, noun.singular(), noun.modernPlural(), + noun.classicalPlural()); + } + + System.out.print("Enter a noun to inflect (blank line to quit): "); + ln = scn.nextLine().trim(); + } scn.close(); } -- cgit v1.2.3