Skip to content

Command Based UI Simplifier that parses the sentences passed and swaps the words for their synonym from the Google list of the 1000 most used words in English. Final project for the Module "Advanced Object Oriented Programming" of the H.Dip in Software Development (GMIT)

License

Notifications You must be signed in to change notification settings

andpenaspal/Text-Simplifier

Repository files navigation

TEXT SIMPLIFIER

Author: Andres Penas Palmeiro
Final Project for the Module "Advanced Object Oriented Programming" of the H.Dip in Computer Science in Software Development - GMIT
Version: 1.0 (Jan 2020)

Summary

This application simplifies text using a source containing a list of Common Words and another source containing a Thesaurus of synonyms of these words. The text passed is processed and converted into a simpler version of itself, coloring in red the changed words.

Requirements

JAVA JRE 8 (or superior)

Usage

The Menu shows the different options available: Simplify Text and Change Sources. The selection of the options is made by entering the corresponding number showed beside each option.

To simplify text enter the text to be simplified.

The files containing the default and customized database must be placed in "src" folder. Default files are not included in the current version of the application. Default files must be populated following the same rules as Custom Sources (see below), named as follows and in ".txt" format:

  • Common words: "google-1000".
  • Thesaurus: "MobyThesaurus2".

To change sources enter the name of the file(s) containing the list of Common Words and then enter the name of the file(s) containing the Thesaurus. The database will be uploaded automatically.

To upload from multiple files, enter the name separated by commas (',') or blank spaces.

The creation of customized databases must comply with the following rules:

  • Common Words files must have a list of Common Words separated in different lines or by commas (',').

  • Thesaurus files must have a list of synonyms (including the Common Word) in each line, separated by commas (',').

Special Features

Change sources

The application allows the user to change the source files and load a customized database.

Multiple source files

The application allows the user to conform its customized database loading multiple files for the Common Words and Thesaurus.

Database load on background

The application automatically loads the default database and customized database on the background, allowing the user to interact with freely with the application while uploading/updating the database. If the database is not fully uploaded/updated at the moment of simplify, the application will show a message and wait until the database is fully uploaded.

Limitations

The current version doesn't support simplification from files.

About the Text Simplifier

The simplification process swaps complex words contained in the Thesaurus with its synonyms from the simpler Common Words. Swapped words are marked in red.

License

MIT License. See "LICENSE" for further information.

Contact Information

[email protected]

About

Command Based UI Simplifier that parses the sentences passed and swaps the words for their synonym from the Google list of the 1000 most used words in English. Final project for the Module "Advanced Object Oriented Programming" of the H.Dip in Software Development (GMIT)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages