Add Words To Dictionary

I have to develop a spell checker from scratch using asp language. as i'm a newbie with asp, there are still a lot of things that i don't understand. How can I add new words to my list of dictionary sorted alpabetically?

Do i need to use the database for this function? Can anyone show me? or if anyone knows of any websites that i can refer to.

View Replies


ADVERTISEMENT

Dictionary

I am working on a project which
used dictionaries. I am having
to remake part of this and have
no experience with the
scripting dictionary.
I need to see how to create multiple
dictionaries within one dictionary.
Can someone point me to some
reading materials on this where I
might see an example as well?

View Replies View Related

Dictionary Searching

Just wondering the best way of doing this? are there any dictionary databases laying around somewhere?

I want to change my search so that it corrects typo's and maybe suggests better words to search with... like googles but with more alternative words to make the search more useful - slightly limited so it doesn't become pages and pages of search terms.

What I don't want to do is sit down in front of my computer and type all of this in, going through related words and possible other searches / best searches from the given input.

View Replies View Related

ASP Dictionary Object

While pouring over some code I've discovered a previous developer heavily
uses the "dictionary" object. Whilst I see some of the advantages of using
this system It's something I've not used myself so am not sure of the
limitations.

We are about to widen the scope of the website it's being used on to a
WorldWide system - greatly increasing the number of users that will be using
the website.

What I'd like to know is are there any performance issues with using this on
a heavily used site?

View Replies View Related

Online Dictionary...

I'm planning to construct an experimental mini online dictionary. The core of the dictionary is, of course, the smart 'search' function.

So I'd like to know if it would be better to use asp instead of php for such a search function (and...why!).

View Replies View Related

Dictionary Object

I am trying to store some data in a Dictionary object. I am getting errors though about adding duplicate keys. "key already exists"

I commented out the obj.add and just did a .write of what exactly was being added each time. There never was a time when a key was being added twice ....

View Replies View Related

Send Dictionary

I proceed much further whether it is possible to pass in the Dictionary object (Scripting.Dictionary) from ASP to a stored procedure in SQL Server. Any sample sites or simple code examples would be really great.

View Replies View Related

Dictionary/Solution!

I need an ASP dictionary/glossary script. I saw a bunch of options online for PHP but almost nothing for ASP. I'm not a programmer....but can install working code and connect a database. can anyone recommend a tutorial or even better a finished working piece of code I can implement to create my own dictionary with custom definitions?

View Replies View Related

Dictionary Issue

I'm using a dictionary to record some totals, however, my first attempt
failed and I wasnt sure why...

snippet from original code:

oTotalFilters.Item(rsNetStock.fields("PartNo")) =
oTotalFilters.Item(rsNetStock.fields("PartNo") ) + CInt(iNumFilters)

After going back to the start, I eventually realised that the dictionary
Item property didn't like 'rsNetStock.fields("PartNo")' as a parameter, so I
had to use something like the following:

sTest = rsNetStock.fields("PartNo")
oTotalFilters.Item(sTest) = oTotalFilters.Item(sTest) + CInt(iNumFilters)

Am I missing something here? Surely, my original code should have worked?

Is this a known bug/feature?

View Replies View Related

Scripting.Dictionary

I'm trying to use the Scripting.Dictionary. However the item I'm adding to the dictionary is an array. An example is

Set objD = CreateObject("Scripting.Dictionary")
objD.Add "Key1", Array(1,2,3,4,5)

I know for sure the array always has 5 items. In VBScript, I can access the item like this:

objD.item("Key1")(1) to objD.item("Key1")(5)

View Replies View Related

How To Highlight Words

let's say that I want to highlight some words or even a square of a table in yellow...how would i go about doing that? What code would work to do what I need?

View Replies View Related

How To Display The Value In Words?

I'm having a problem in displaying a selected option from the drop down list in words. But after I selected an option, nothing is being displayed, I think the value can't be passed at all. Please let me know how to fix it.

<td align=center width=20%>Fruit:
<select name=""FruitName">
<%
" If not myRS.eof Then
while not myRS.eof
%>
<option value="<%=myRS.fields("ID")%>"<%If FId = myRS.fields("ID") Then response.write "selected"%>><%=myRS.fields("FName")%></option>
<%
myRS.MoveNext
wend
%>
</select>

<p>The fruit you have selected is <%=FruitName%></p>

View Replies View Related

Trimming Words

I have a database field that is a memo type. I would like to be able to only display the first 50 words from the database. I would like for it to show ..... after about 50 words.

I am using <%=Content %>. How do I trim this field to show only 50 words and then ....?

I tried the following code:
Function LengthTrim(input, length)
If Len(input) > length Then
Return Left(input, length) + "..."
Else
Return input
End If
End Function

then <%= LengthTrim(Content, 50) %>

But it would not work. I got the following error message:

Microsoft VBScript runtime error '800a01f4'Variable is undefined: 'Return' .

View Replies View Related

Separate Two Words

I have data where first and last name are in one field. I need help
how to i separate first and last name in ASP.

View Replies View Related

Spaces Between Words

the spaces between the words (in a textbox for example) are removed when i try to pass the value to another page for saving.

View Replies View Related

Retrieve Words

I want to take a string like this:Code:

string = "THE RED GIGANTIC AND HUMONGOUS"

and retrieve only the words over a certain length or longer (let's say 5 characters), maintaining spaces between them- result:Code:

string = "GIGANTIC HUMONGOUS"

View Replies View Related

Replacing Whole Words

i am having trouble getting my REPLACE fn. to replace whole words only. basically, i'm running a 'spelling checker' fn. that uses the REPLACE fn. to find incorrect spellings and replace them. problem is, the fn. seems to replace all instances of a string, and not a whole word only as I intend it to be:

Code as follows:

StrInput = Request.Form("BKM_Search")
StrInput = LCase(StrInput) 'convert all to lowercase
StrInput = Trim(StrInput)'trim all empty space b4 & after string
StrCorrect = Replace(a_StrWrong, a_StrRight,1,1,1)

Let's say I want to replace the word "sea" with "ZZZ" only:

Example input: "Sean has some neat sea shells"
Example output: "ZZZn has some neat ZZZ shells"

View Replies View Related

Words In A String

Let's say I have the following var:

Code:

strTemp="Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed"

and I am searching the string for another string 'amet', for example. How would I go about getting my page to output the word I search for and say 10 chars to the left and 10 to the right? So, in this case, I'd like to be be able to search the string with any
other string ['amet' for example] and have it output this:

Code:

...dolor sit amet, consecte...

View Replies View Related

Return Dictionary From A Function

im trying to create a function that accepts a sql statement as a parameter,
makes a db connection, returns a recordset, and inserts all items from the
recordset into a data dictionary - then i want to set the value of my
function equal to my newly created dictionary of items from the recordset -
this is where im having a problem. is it possible to set a function equal
to a dictionary? i cant seem to make this work and it seems that this
should be possible.

here is some sample code:

View Replies View Related

Order A Scripting.Dictionary

I have a problem with the Scripting.Dictionary in ASP.
All my data is entered into my Dictionary with no order and I would like to order them alphabeticaly and I don't know how to do.

View Replies View Related

Accessing Key Name In Dictionary Object

Have created a dictionary object that gets both the key name and the value from a database.

I need to be able to output both the key name and the value.

I can get it to display the item value, but am unable to get it to display the key name. Should look like this

KeyName = Value
e.g.

1 = J5200
2 = S5362

View Replies View Related

Dictionary Scipting Error

having problem with dictionay scripting when i changed data base that
uses N'S AND Y'S INSTEAD OF 1'S AND 0'S AND I GET THIS ERROR,

Microsoft VBScript runtime error '800a000d'

Type mismatch: '[string: "Y"]'

/PICKLER/cm/delay_info_cm.asp, line 154

LINE 154 READS Code:

View Replies View Related

Case-insensitive Dictionary

I need something like Scripting.Dictionary. but with case insensitive keys, i.e.

dict.Item("mykey") and dict.Item("MyKeY") should be identical.

View Replies View Related

Random Dictionary Item

I'd like to be able to select a random key/item, is this possible with the dictionary object, or would I be better using an array?

View Replies View Related

Array Of Dictionary Objects

I'm having problems with an array of dictionary objects. It is being used to organize an SQL catalog set up with an ID/ParentID scheme. The script uses recursive functions to return the children categories, and works fine except for storing the info in the array of dictionary objects.

The UBound of the array is correct, and the very last index (93) to the array seems to have the correct dictionary object, but all the previous (0-92) come up with "Object Required:" error. By the way, dicRecords is another array of dictionary objects taken from a recordset. Any ideas? Code:

View Replies View Related

Scripting Dictionary Vbscript

i'm trying to page through the items in the Dictionary, i've got a great example on it, but the way my class and dictionary is set up won't allow me to use the example Code:

View Replies View Related

Word.Application Dictionary

I'm using Server.CreateObject(Word.Application) to execute a spell check. Works fine, but we'd like to add a few of our more common company-isms to the dictionary, as they're getting flagged every time.

I tried opening Word on the Server and adding one to the dictionary. I also tried it locally (which didn't make any sense, but still). The word still shows up as an error. Is there a way to customize this dictionary?

View Replies View Related

Highlight Returned Words

wondering if its possible to have some kind of searched word highlight! IE. every thing it throws up in return of search it will highlight why it has brought it up! so if search "a" all "a" in return results would be highlighted.

View Replies View Related

Filter Bad Words Using Regexp

is it possible (i heard u can replace) to filter out bad words using regexp? I'm using Replace() but it sucks without ALOT of extra code... but using regexp it seems better, with ignorecase, etc.

How would I do it? O, here's the way it is now:

<%= Decode(ChkBadWrds("Comment")))%>

How would I do something similar using regexp?

View Replies View Related

COutn The Number Of Words

how can i count how many words have i written in a text
area?Like taking an example ... i am writing in this textarea
of microsoft usergroup. and say in total i have written 50
words .. how can find out this information?

View Replies View Related

Words After Blank Space

I retrieved some data from the database and put it in a textbox but the words after the blank sapace cannot be shown, why is that?
Name = rs("requestor") 'where the name is "Sam Siew"

<TD><INPUT TYPE=TEXT Name=requestor size=12 Value=<%=Name%>></TD>

In the text box, it only show "Sam".

View Replies View Related

Capitalise All Words In A String

how to capitalise all words in a string that are seperated by spaces. The string is variable and not the same every time hence I cant use the Ucase function as I wont know the exact position of the start of each word.

View Replies View Related

Display Words Meanings

I would like to have a text box where people can type a word they want and then click on a button to get the description of that word.The way I see it working is if the word they entered in the box is in my database a page will display the meaning corresponding to the word in the database. However if it is not then it will display a message telling them that.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved