Extensions
Deadline for Assignment 1: 4:00pm Thursday 17th November 2011
The possible extensions to the program are:
-
a) Retrieving the data about terms and their definitions from a text file rather than including them as part of the code.
-
b) The code of the starting program uses ArrayList to handle both the list of terms in the glossary and the list of words in the lexicon. Use a more suitable collection class for these cases.
-
c) At the moment the similar terms which the program suggests have
the same number of words as the inputed phrase. A more general
solution would be to include terms which comprise all of the words in
the inputed phrase but that might have additional words. Under these
conditions, a term would be considered as more similar than another
term if the former contains fewer additional words than the latter
-
d) Adding functionality so the interaction with the user can be
more sophisticated. For example:
-
being able to display all the terms in the glossary, or
the terms that start with a certain letter, or that belong
to a certain group (for instance, only the terms
related to runtime errors)
-
being able to refer to a similar term by a reference. If,
for instance, the program returns 5 similar terms, the
user should be able to type a number from 1 to 5 and
obtain the definition of the associated term
-
being able to add, modify and delete terms from the glossary
These extensions do not have to be implemented in any order. You could
choose to implement, say, only the second, or implement the third and
then the first.
| Last updated at 7:37pm, Wednesday November 9th 2011 |
Dr Natalia Beloff (N.Beloff@sussex.ac.uk) |
|
|
|