summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/gen
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2017-03-25 14:07:24 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2017-03-25 14:07:24 -0400
commit674d9769821775484fe6913b93c650189fbedfed (patch)
treeeebef3fe254ee49a7f12f24ea68fab8570096219 /BJC-Utils2/src/main/java/bjc/utils/gen
parent42a897dae1bfa58ab665f5012c2ac160316bcb75 (diff)
General cleanup
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/gen')
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/gen/WeightedGrammar.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/gen/WeightedGrammar.java b/BJC-Utils2/src/main/java/bjc/utils/gen/WeightedGrammar.java
index 6179850..15d7753 100644
--- a/BJC-Utils2/src/main/java/bjc/utils/gen/WeightedGrammar.java
+++ b/BJC-Utils2/src/main/java/bjc/utils/gen/WeightedGrammar.java
@@ -242,19 +242,22 @@ public class WeightedGrammar<E> {
}
/**
- * Generate a generic sentance from a initial rule.
+ * Generate a generic sentence from a initial rule.
*
* @param <T>
* The type of the transformed output
*
- * @param initRule
+ * @param initRules
* The initial rule to start with.
+ *
* @param tokenTransformer
* The function to transform grammar output into
* something.
+ *
* @param spacer
* The spacer element to add in between output tokens.
- * @return A randomly generated sentance from the specified initial
+ *
+ * @return A randomly generated sentence from the specified initial
* rule.
*/
public <T> IList<T> generateGenericValues(E initRules, Function<E, T> tokenTransformer, T spacer) {