im sure anyone can pick up UC, its simple to use and pretty straight forward, altho some of the concepts used in programming require some experience to make it all work out otherwise you will end up quite frustrated.
I'm not sure if UC will work on the command line, its more of a GUI based language. UC is designed to make windows based GUI programming simple. The only reason i can see you would want something to work in the command line is if you were trying to build a plug-in or automate a process. In which case, UC may not be for you. How ever, if you want to make a stand alone tool that you can use a companion to another program to test and look for these kinds of variables, then yes UC is exactly what you want to learn as your first Language.
As far as will UC do what you want it to do, sure, I cant see why UC couldn't do those; provided that you wrote or used the correct algorithms to make it all happen. But, i will say this, some of what your wanting to do, doesn't exist. for example, having the program to be smart enough to identify a clause, thats gonna be quite a trick. Its one thing to break a sentence down into words, or a paragraph down into sentences, or even look for sentence fragments, and run ons. It is entirely something different to look for grammar specific concepts that can only be derived by knowing the words meaning and being able to evaluate its usage in the current sentence. That my friend is something no programming language has yet to do. And its not because the language cant do it, no no, its because no one has designed an algorithm that is capable of doing such a task.
You said your not a programmer so Im gonna stretch my neck out of my shell abit and try to explain some of these concepts to maybe speed you on your way to your goal. For starters an
algorithm is merely a mathematical evaluation of a data structure. A data structure is exactly what it sounds like, data you pass to a program to logically evaluate.
So lets say for example, you want to start small and look for "spelling errors", and calculate a "grade" based on the error count. then we would have something like this.
- Code: Select all
public callback function spellcheck(in EventId:integer ControlObj:control Key:integer out Cancel:boolean)
type
tVector[*:*] : array [*:*] of string[*]
var
words : tVector [1:*]
wlist : tVector [1:*]
i : integer(0:MAXINT)
k : integer(0:MAXINT)
j : integer(0:MAXINT)
l : boolean
miscount(0:MAXINT)
grade(0:MAXINT)
code
grade <- 100
wordlist <- "%PRGRAMROOT%/wordlist.txt"
doc2check <- getText(me.myTextArea)
for i from 1 to Length(wordlist)
k <- strFind(wordlist, "commaChar", i, TRUE)
if k /= 0 then
wlist <- {strcopy(wordlist,j,k)}
end if
j <- j + K
end for
for i from 1 to Length(doc2check)
k <- strFind(doc2check, "spaceChar", i, TRUE)
if k /= 0 then
words <- {strcopy(doc2check,j,k)}
end if
j <- j + K
end for
for i from 1 to Length(words)
l <- FALSE
for each word in wlist
if words{i} = word then
l <- TRUE
else if word = wlist{Ubound(wlist)} and l is FALSE then
miscount <- miscount + 1
end if
end for
end for
grade <- grade - miscount
if grade < 0 then
grade <- 0
end if
call msgbox("your grade is", grade)
end function
Now as I said above, this code snippit probably will not work out of the box, I mainly tossed it in here to give you an example of the complexity of what your after. I am not in any way trying to scare you away from what your doing, I am how ever just informing you that what you want to do is quite possible but will be a grueling task.
Please note*
if you accomplish this task, you can retire, because every word processing org in the world will pay big bucks to use your invention =).
I wish you the best of luck, and We will be more then happy to assist you in anyway we can along your journey.
Cheers.