I am supposed to do these few things in my program but I got stuck.
Step 1: To split and count the number of words in the sentence input by users.
Step 2: To extract subjects and objects e.g. nsubj, pobj, etc from the sentence input by users. Or to remove the bad words (stop words) from the sentence with the database of the stop words.
Step 3: To check words that match the clues and patterns. E.g. Jones was born in 1975; the matching words are Jones, born, 1975. The clues and patterns are all in sql database.
Step 4: To check proper noun - capital word for each starting word)
Here are my half-way done codes. I hope there are someone can help on advising me on how to continue it.
'To count the words
Public Function getWordCount(ByVal InputString As String) As Integer
Return Split(System.Text.RegularExpressions.Regex.Replace(InputString, "\s+", Space(1))).Length
'To eliminate stop words and replace with a space
Public Function StripStopWords(ByVal s As String) As String
Dim StopWords As String = ReadFile("C:\Users\jaimiechin\Desktop\stopwords.txt").Trim
Dim StopWordsRegex As String = Regex.Replace(StopWords, "\s+", "|") ' about|after|all|also etc.
View Complete Post