Word completion problem

Hi folks.
Not after code, as I am hoping to write this myself. I am after suggestions from anyone that has been there before or has a bit more experience with this problem and ideas for me.
Many of you guys are probably using an IDE with code completion. I'm not trying to write a code completor just yet, but a simple word completor.
My current plan is to use an embedded java database (derbyDB) in the application (lets just say a JTextArea in a frame). The database has heaps of words in it. As the person types, it sits there in the background with a thread that listens to the stuff being typed and queries for similar words (SQL) in the database and adds it to the text area in a highlight.
I'm pretty fine with all the text area stuff, but does the above plan sound fine for what I am trying to do?
Is there any problems people see with the above design? My biggest concern was using the key listener to figure out what they typed into the box... I am worried that if you have a fast typer, it will freeze the characters from coming on screen while the database is looking them up...
I have looked all over google and through these forums, but cannot find anything (hell- im not even sure if word completion is the correct term for what I'm trying to do...). I just know that many programs do it, and wanted to know how.
Interested to hear any suggestions about this problem.
Jason.

Aha... Queues... That would be a better approach. Thanks. I had no idea about using these!
i noticed you also made reference to a database. So I'm guessing the database is the way to go.
I wasn't particularly worried about the grammar side of things, but now that you mentioned it, it does seem like a big problem, ie which word to complete in which situation in a sentence. It almost sounds like a compiler but for english!!! lol Perhaps I should limit the completor to technical words (anatomical words is what I am mainly interested in),
ie user types "stern"
possible completions are sternum, sternomastoid, sternocleidomastoid
when user types ctrl-space (as you say) these words appear in a drop down box.
Thank you for your suggestion about queues. I will learn about these now.
Jason.

Similar Messages

  • Word completion in Asha 311

    Maybe I am missing something, but I can't figure out how to use word completion.  It can be turned on or off from settings > text editors > word completion
    With "prediction" on and "word completion" off, inserting words saves typing: the predicted word is displayed in a blue bubble, tap the intended word and it is inserted into the text.
    When "prediction" and "word completion" are both on, the word is also completed inline.  But I can not select the word that was completed inline.  What is the purpose of "word completion"?
    Thank you.
    Solved!
    Go to Solution.

    When using Word Completion, you need to tap on the screen in the writing area and slide it a bit to left or right. The auto-completed word will be selected and published.
    However, i don't like the completion. I keep it always turned off.

  • Your purchased could not be completed,problem buy gems clash of clans

    your purchased could not be completed,problem buy gems clash of clans

    Were u charged for it? If not, it shouldn't matter. But if it was charged, u can send supercell a bug report. In clash of clans, go to Settings -> Help and Support -> Report an issue -> purchasing issue
    It will take u to ur mail and u hv to send an email to supercell giving an account if what happened. If u hv any proof like a screenshot of your credit card bill and that of the pop up box, u can send it in ur mail. As it is a purchasing issue, it should be looked into soon. Hope this helps.

  • Any facility in Cocoa for word completion?

    I'm looking for some interface to the Mac OS dictionary, with the goal of being able to get a list of words which match a basic expression. For example: asking for words that are 5 characters long that match the form sh_.
    Feature useful for suggesting words to complete a crossword puzzle.
    I've found NSSpellChecker, but couldn't find what I was after there – just suggesting similar spelt words.
    There is the feature in various applications for doing word completion, and am wondering if this is the area I should be looking?
    Thanks,
    r

    Ray A wrote:
    I'm looking for some interface to the Mac OS dictionary, with the goal of being able to get a list of words which match a basic expression. For example: asking for words that are 5 characters long that match the form sh_.
    Feature useful for suggesting words to complete a crossword puzzle.
    I've found NSSpellChecker, but couldn't find what I was after there – just suggesting similar spelt words.
    It sounds like the NSSpellChecker "completionsForPartialWordRange:inString:language:inSpellDocumentWithTag:" method might help.
    I'm not sure if it will handle missing characters at the beginning of a word.
    Using regular expressions might help. You will need a dictionary of words to search from. You can use the dictionary's spell check dictionary for that. You will also need a tool that can do regular expressions. Unfortunately, there isn't good support in Cocoa for regular expressions. Perl and some command line tools like sed and awk are much better at that.

  • Word Completion Stopped Working

    Hi,
    My word completion stopped working on my Macintosh.  I tried shift-space, but nothing happens.  Anyone know how to resolve this?
    Thanks!

    I had to create a new workspace and project, then copy all my code into the new application.  I was able to import my skins, scripts and assets into the new workspace.  I should have remembered this because it happened before.  I was able to search Google for some hints on how to solve this issue.

  • Word completion in Apple Pages

    Hello,
    I am a new Mac owner. I have been using the free word processor OpenOffice a lot recently, and one of the features it has is word completion (if you use a word that is more than nine letters long, it will offer to complete it for you if you press Return or, alternately, Tab). I read somewhere that this feature is available on Pages; does anyone know how to activate it?

    The only thing I know of is the Automatically use the spell checker suggestion. It is found in the Pages preferences >  Auto correction

  • Word completion in Mail?

    Is there a way to turn on word completion in Mail, like it works in TextEdit?
    In TextEdit, when I hit escape I get a list of words that appear earlier in the text to choose from.
    Very helpful for lengthy words (especially in German ;-) ).
    But it does not work in Mail's compose window :-(
    Any ideas or hints?
    TIA,
    Gabriel.

    Sorry, I probably wasn't clear.
    What I want is this:
    I type "chauf" then hit the escape

  • About word prediction (word completion).

    Hi there,
    I wonder that if the word completion can be done in Oracle Form.
    Say there is a Text filed, when user does several enter queries, when he/she
    types in something, Word prediction/word completion will prompt the query history words.
    Is this possible in ORACLE Form 11g?
    Regards,
    Phil

    Hello,
    Just a word to say that this Java Bean does not do the exact job you need, in a way that it does not manage any "historical" data you entered in the past, reason why I did not point it to you.
    Francois

  • Onscreen keyboard - word completion

    maybe i am missing something, but I can't figure out how to use word completion using the onscreen keyboard. the word appears but I don't know how to select it...... maybe I am dumb? i have tried everything. searched the manual and the discussion threads with no luck.
    Solved!
    Go to Solution.

    Can't expplain the difference because I have always only used it with both on and it works well for me. I start typing a word and as soon as I see the correct completed word appearing, I tap on it to complete. You should also consider using Swype on the N9. It is very good. 

  • Word Completion?

    This is my first Blackberry, the Tour. I have it with Verizon. I used to have a Treo. The one thing I miss is the word completion... Do the Blackberries have "word completion" or anythign like this? I hate typing out the entire word. Thanks for the advice!

    I used to have it on my old phone and I totally miss it. I'm a novice, but I researched it and looks like it doesn't not exist for BB. People seem to work around it by incorporating it inot their spell check (ie whenever you [purposely] type 'srp' it'll fix it by putting surprise). That's annoying. Hopefully someone proves me wrong cuz I too hate typing out the whole word.

  • Security word entry problem

    Hi, so when I am web browsing with my iPad2 and I have to enter a security word for a website to know I am indeed a human, the website always comes back to me saying i input the information incorrectly. I have checked I am entering the information correctly, I am aware sometimes they are case sensitive and that the ipad will default to the first letter being a capital and have changed that. I still get the problem every time. I have checked the websites on my laptop and they worked first time on both so I know the websites are working ok.
    Is there something I am missing?
    Cheers,
    Greg

    OK. Try the following 'standard' fixes for Safari and see if they have any impact :
    Try clearing Safari's cache : Settings > Safari > Clear Cache (and Clear History)
    If that doesn't work then try closing Safari completely and then re-open it : from the home screen (i.e. not with Safari 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Safari app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    A third option is a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • "The operation could not be completed" problem wit...

    I have just upgraded to 6.83 from 6.81 and every time when I use the phone manager the error message "The operation could not be completed" appear (although despite the messages, it works well). I try to search the problem in the faq as well as in the forum. There turn out to be a solution to use the cleaner program. However, the program will not work with 6.83 nor Vista. I try to reinstall the PC suite but it fails. Anyone has encountered the problem or is there any solution?

    13-Apr-200706:11 AM
    migget wrote:
    You can try to manually register file ole32.dll. In my computer, it seems to be in folder ..\system32 and ..\syswow64.
    I tried but the problem is still there.

  • PDF to Word Document problem

    First time user on Acrobat 9 Pro and am trying to convert a PDF document (I'm not the author) to a Word document.
    Once a word document I want to be able to edit or e-mail to a 3rd party to edit.
    Each time I have attempted "save as" or export the following message appears and the document is saved as a picture (thus cannot be edited in word).
    "Acrobat was able to make this document accessible but found the following oddities:
    Some difficult pages were encountered requiring all graphics on those pages to be labeled as figures [1]."
    Does this mean there is no way that the document can be converted to word and then edited or am I doing something wrong?
    If anyone can advise I would be grateful.  Thanks

    It sounds like you might just want to consider putting the scan or image save (if possible) in the header of a WORD document set at exact zero spacing and at the top of the page and with the image below the line. This should show the image on the rest of the page and you could then just type in WORD to your heart's content. In any case, the original form will likely have to be used in the final since most folks would not accept a made up form, particularly if they have secured it. The WORD trick is one I used to use to fill out a monthly form and have a record of what I had completed. I haven't done it for many years, but is a useful trick.
    Just to demonstrate the point, I have put the first page of the IRS f1040 into a WORD file. The security on the form allowed for it to be saved as a TIFF and I just put the TIFF into the header of a DOC file. I changed the TIFF to be behind the text, and aligned at 0,0 of the margin (actually you might want to set your default margins first and then go from there, since a change of the margins will move the graphic). I then set the paragraph spacing in the header to exactly 1pt (you might be able to adjust this up, but might have to compensate for the TIFF alignment). You then go back to the document and type to your heart's content. The text should show on top of the graphic. You can do this with any graphic and it is a trick that few folks are aware of except for power users. I ran into it many years ago with a different word processor and found I had to set the paragraph to exact to make it work. With the WORD feature of having the graphic behind the text this may not be necessary.
    I have posted it (at least for a few days) at http://wadavis.ece.vt.edu/f1040Sample.doc. I think this may meet your need. In the end, you likely will need to come back to the original for and fill in the full data for the folks that made the form. If you can not save as a graphic, then you will have to scan. If it is in black&white, you might try either B&W or grayscale to save space. In my example I did not bother with the conversion to B&W and the form page is 985kB. In B&W it is 158kB. Grayscale is about 2 times larger. That would have made my sample file a lot nicer to work with. In any case, this idea takes a bit of time, but can be effective. If you have a multi-page form, then you would add a section break to a new page and repeat the process using a different header (a bit confusing in WORD, but is easy to do once you figure out the correct choice). Good luck.

  • JEdtiorPane/HTMLEditorKit word wrapping problems

    Hi,
    I have a JFrame component that has a splitPane, on the left side is a JTree and the right side has a JEditorPane that has it's content updated with HTML using a method to generate the HTML via the setText() method . (no url, and no html file)
    The searching I did indicates that word wrapping is the default behavior, and I saw a lot of posts from people trying to get rid of the word wrapping, but it isn't wrapping at all for me. I get the horizontal scroll bar.
    I had the same problem using a JTextPane...anyone know how to wrap text?
    here's the relevant code:
    descriptionPanel = new JPanel(new BorderLayout());
              descriptionEditorPane = new JEditorPane();
              HTMLEditorKit htmlEditorKit = new HTMLEditorKit();
              descriptionEditorPane.setEditorKit(htmlEditorKit);
              descriptionEditorPane.setSize(new Dimension(610,800));
              descriptionEditorPane.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              descriptionPanel.add(descriptionEditorPane);

    Did you place the components into scroll panes and then put those into the split pane?
    If so, then I guess that calling setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER) on the editor pane's scroll pane might solve your problem.

  • Word wrap problems in 36.0

    When entering text into a web form the text no longer "wraps" at the end of the box. The first part of the text runs off the left side. It is working fine in THIS text entry box but is now a problem on some other sites.
    See: http://www.thedirectoryclassifieds.com. Start placing a listing and then start entering text into the description box. Once you reach the end of the line the text does not wrap, just runs off the left side as typing continues. After this testing, just exit (back out) without continuing placing the listing.
    When encountering this problem I did a test on another computer that had 35.0.1 and word wrapping worked fine. Then I upgraded to 36.0 on that computer and now the problem is there too.
    So this definitely means a problem with 36.0 as it wasn't there in earlier versions.

    That particular form control has:
    <textarea id="main_description" name="b[description]" '''style="white-space: pre;"''' class="editor field"></textarea>
    For the first time in Firefox 36, the white-space property is being honored for textarea controls. So there's your trouble: "pre" means Firefox should emulate the preformatted tag, which requires manual line breaks.
    It would be great if you can convince the site to change this to:
    &lt;textarea id="main_description" name="b[description]" '''style="white-space: pre-wrap;"''' class="editor field"></textarea>
    which is supported by all modern browsers (per the compatibility table here: [https://developer.mozilla.org/docs/Web/CSS/white-space#Browser_compatibility]).
    But that likely will take some time, so what is the best short-term workaround? I need to think about that a bit.
    To manually hack this form control, you can right-click it and choose Inspect Element (Q). This should open the web console to the Inspector in the lower part of the tab. Firefox should highlight the HTML tag I listed first above, and on the right, show the style rules for it. Under "This Element" you can uncheck the box for that rule to have the textarea styled using default rules. But you would need to do this after each time you load the page, which is a hassle.

Maybe you are looking for

  • How can I install snow leopard on 2010 MacBook Pro that has no os?

    I purchased a 2010 MacBook Pro on eBay and it was delivered with no operating system. It has disk utility recovery, but the choices listed don't apply. I don't have an time machine backup, nor can I restore Mavericks.  I bought a copy of Snow Leopard

  • Windows 7 Themes will not Roam with Roaming User Profiles

    Hi, If I install a theme pack from the Microsoft Personalization website, it will install on the PC I am currently using. However, if I log onto another PC, the theme will not roam. I mean the wallpaper collection, the sounds, the screensaver, and th

  • I've lost my mail, can't connect to the cloud, and can't backup.  Help!

    An error occurred while trying to save the icloud account is the message I get.  I've lost my mail, can't connect to the cloud, and can't backup.  Help!

  • Final Cut Pro HD 4.5

    Hi, I am having real problems with FCP HD 4.5. When I click on the application, a pop-up appears saying FCP has quit unexpectedly. How can I get round this? Thanks

  • What versions of the Home Hub are compatible with ...

    I've heard verbally from a variety of people (all paid by BT) that v1 Hubs won't work properly with 21CN and I have certainly just had a "user 21CN upgrade experience" that confirms that - exchange got upgraded, my profile  which used to be over 5000