**********Introduction*********** 

**Sinhala Writting Inspector**

Acoording to our developed web application we implement and expect that
correct a sentence according to s-o-v pattern, correct the Sinhala input in terms of
spellings, correct a sentence with grammar and user style to obtain a meaningful
Sinhala output sentence.
Considering in the pattern identifying, we can identify correct word as segment to SO-V pattern. 
System recognize the text inputs using non topological analysis 
(word formatting analysis) and it will Identify as a S-O-V method. Then it will match pattern
and template. Finally, web application will show the merge sentence in correct s-o-v
pattern.

The spell checker detects misspelled Sinhala words in a specified sentence or
paragraph and provides the best suggestion in case of misspelled words. When the user
enters a word or sentence in this implemented tool, words will be checked by letters
according to the Sri Lankan spelling rules. Here we have followed only a few spellings
rules as Sinhala is a complex language. Finally, it will display the most precise words.
Also here we have considered a suggested word list that considering one word with different meaning.

Considering the grammar checker, the user can identify the subjects of verbs and
sentences are identified in the form of sentences. Then it would be the active or passive
voice of the sentence, male or female, singular or plural, is defined and identified. Then
the system checks the correctness according to the identified sentence. The entire
sentence will identify as above to access each sentence in the paragraph.

User styles indicate how a particular Student uses typing styles for tones, word
selection, sentence structure. Some writers have a simple and concise style. So, users
can select their user styles after typing the sentence/paragraph. We mainly focus on
user style as a formal and informal sentence in Sinhala. Also, it is important to know
how to use punctuation marks in correct place of a sentence. In User style has focused
on how to apply punctuation marks too.


**====== ==Individual objectives= === == ==**

**IT17005340-R.M.H.S. Rathnayake**

Identify the Sentence pattern

 1.Get a sentence at a time.
 
 2.Check the sentence using morphological analysis (word formatting analysis)
 
     -There are 3 main dictionaries,
         -Identify basic Sinhala word using base dictionary
         -Identify rules that are needed to generate words using rule dictionary
         -Identify synonyms and anonyms using concept dictionary
         
  3.Check the Sinhala phaser, considering adjectives and adverbs.
  
  4.get the word segments according to SOV (subject, object, verbs)
  
  5.Identify as a S-O-V and match pattern and template.
  
  6.Finally, display merge sentence in Web Application.

**IT17000390 J.R.W.Jayasinghe**

Identify the Spell checking

1. Get a sentence according to s-o-v pattern.

2. Check the words according to the sinhala spelling rules.Here we have considered most common spelling rules and we have given some suggested word list for user to update as their preference.
  
i. The most common Sinhala spelling mistakes are due to confusion of the retroflex and the dental letter.
According to the language of south India, they used න, ණ, ල, ළ and it will be the most common spelling error in the Sinhala language. 
Eg:
Correct Spell 		Incorrect Spell
තරුණිය 			තරුනිය
ළමයා 			ලමයා

‘ණ’ and ‘ළ’ represent as the retroflex nasal and the retroflex lateral. But these two
letters pronounced as same manner න-n and ල-l. 

ii. In Sinhala Language there may have, Words that the same spelling, the same
pronunciation but different meanings are called homonyms. The use of
these letters may change the meaning of some words.
Eg:
Spell 			Meaning
වනය 			Forest
වණය			Wound

iii. Also there may have one word with different meanings.
Eg:
Spell 			Different meanings
ඉර 			හිරැ , සීමාව
ගත			ග්රන්ථය , ශරීරය

3. If the given words are already exist , db will return the words with the correct spells and finally will display the correct sentence.

4. Also, as we have given suggested word list, it will display selected words with different meaning and user can add any of word as thier preference.

5. Display the sentence with correct spells words.

**IT17005418 K.L.A.D.P.Vidyarathna**

Identify the correct grammar

 1. Get a sentence at a time.
 2. The incoming text is split into separate token (word, abbreviation, punctuation a) objects and sentence boundaries are detected.
 3. Adds morphological analysis to every token
 4. Performs parsing using a given rule set.
 5. Identify the correct grammar rule considering the subject, verb, tens, gender and number (singular and plural).
 6. Finally, display correct sentence in Web Application.

**IT17034678 – Sugandhika W.A.A**

Formal writing

1.Get a sentence at a time.

2.Identify subject and verb

3.Convert subject and verb to formal way

4.Convert nouns in to formal way

5.Add විසින් after the subject and ලදි after the verb

*Angular.js controller request to node.js server get and set JSON data. In data communication transmit  
 JSON data to REST services through DB server.
*Then, node.js server response angular.js controller and view the sentence.

***this application will run on localhost:8081




**Main Objective**

To develop a web application/tool that correct Sinhala   input in terms of spellings, Grammar and user style to obtain correct Sinhala output sentence.

**Main Research Questions**

There will be three main complications when we are using Sinhala language. Considering about the three main complications are Spelling checker, Grammar checking and mode (The user type).  
1.Cannot identify sentence patterns
2.Cannot identify correct spells 
3.Cannot identify correct grammar 
4.Cannot identify correct user mode 


**Individual Research Question**

Research Question 01 - Cannot identify correct sinhala sentence pattern using SOV
Research Question 02 - Cannot identify correct spells When we use Sinhala language there are have many similar words with different meaning. 
Research Question 03 - Cannot identify correct grammar Lack of proper rules in the use of Sinhala language, it is impossible to identify the correct meaning of the sentence. 
Research Question 04 - Cannot identify correct user mode When we use Sinhala language, it is inability to handle the Sinhala word correctly to the user. 

**Individual Objectives**

*Identify Sentence Pattern

Sinhala is a free word order language. Its unmarked word order is SOV; variant orders are also possible with discourse – pragmatic effects.  A sentence can have all the possible orders of the main 
constituents with proper intonation.
තාත්තා | මල්ලීට | කෝටුවකින් | ගැසුවේය.
Father | to the younger brother | with a stick | hit
තාත්තා | කෝටුවකින් | මල්ලීට | ගැසුවේය.
Father | with a stick | to the younger brother | hit


*Spell Checking

Spelling Helps Reading. Learning to spell helps to cement 
the connection between the letters and their sounds, and learning high-frequency “sight words” 
According to Sinhala alphabet there are 64 letters.
The use of some letters may change the meaning of some words.
වනය - Forest	වණය - Wound


*Grammar Checking

Sinhala has an alpha syllabary writing system.
It is a segmental writing system in which consonant-vowel sequences are written as single units.
මම ගෙදර යනවා
මම ගෙදර යමි. 



*User Style

when the user types in the user, he or she selects which newspaper is relevant.  
Users also have the ability to change the style later.
Mawbima :- චීනයේ සිට පැමිණෙන මගීන් විශේෂ 
	     පර්යන්තයකින් දිවයිනට
Lankadeepa : චීන ගුවන් මගීන් වෙනම පර්යන්තයකින් 
                         කටුනායකට

 
 