For this project you will be designing and implementing a system, in C++ (98, 11, or 14), that initially reads in a list of words and their synonyms. It can then take in a paragraph and process each word, such that if the word is in the list of synonyms, the word will be repeatedly replaced with a random synonym some user defined number of times. Additionally, the program can take in two paragraphs and perform a similarity analysis to determine if the second could be created from the first using the random synonym replacement described previously.
This assignment has two parts: a design portion and an implementation portion.
Design Document
For the design portion, you must generate documentation, in PDF format, describing your system. The purpose of this is for you to explain not just what your system is doing, and how it is doing it, but why. You will need to justify your design decisions in a concise, informative manner. Justifications such as "I did this because it was easy" are not sufficient, as you should actually explain why a particular data structure or algorithm was more efficient, effective, or optimal. Additionally, commented code, while sometimes helpful in small examples, is not a sufficient explanation in and of itself. Your explanations and justifications are expected to be presented in prose and in paragraph format, i.e. not bulleted lists. Further, part of the evaluation of your design document is the apparent amount of thought and effort that went into its creation.
This document should be divided into three main parts, and should follow the provided template.
In the first part, in one or two paragraphs you should describe the project in your own words and give a brief overview of the problem. Do not copy and paste this from the instruction document.
For the second part, you should describe the data structures you used in your system. What, if any, objects or structs did you create to store data? How did you organize and manage them? What types of formal data structures did you make use of (trees, graphs, arrays, hashes, etc)? In a few paragraphs, describe in detail how you stored the various data elements in your system, and be sure to provide sufficient justification of your methodology.
For the third part, you should describe functionality of your system. How is data moved and transformed? How is it read in? How is it output? What are the various major functions you constructed and how do they work? In a few paragraphs, describe in detail how your system works, and be sure to provide sufficient justification of your methodology. You might also consider including diagrams to more easily visualize how all of the pieces fit together.
Implementation
Your program must provide the following functionality and adhere to the following constraints:
Allow the user to choose the file describing synonym list
Allow the user to choose between performing a random synonym replacement or performing a paragraph similarity analysis
If the user chooses to perform the random synonym replacement
If the user chooses to perform the paragraph similarity analysis
Your code must be well commented.
You must provide a short README file which includes your name and explains how to compile and run your program.
Additionally, you may write a makefile if you want your code to compile with additional flags.