82505

How to disable default English dictionary in Pspell and use only Custom dictionary?

Question:

I am using php and Pspell to create a custom "did you mean" feature and i need to generate suggestions strictly from the word list with me. Is there a way to turn off suggestions from default English dictionary i am using as a base. I just need pspell to look in the custom dictionary, that's it.

Answer1:

Based on this <a href="http://www.rdeeson.com/weblog/41/using-php-pspell-spell-check-functions-with-a-custom-dictionary.html" rel="nofollow">page</a>:

$dictionary_link = pspell_new_personal("/var/dictionaries/custom_spellings","/var/dictionaries/custom_spellings");

Recommend

  • (2 - 4 = -1) when int value assigned to pointer in C?
  • Postback using javascript
  • Why is new Number(8) not exactly equal to 8?
  • How to have a website splash screen (web app)
  • How to bind comma separated list of values to List
  • Swipe Gesture Recognizer not working for me
  • Always require certain dependencies in RequireJS
  • Graceful pod termination
  • Add Windows Feature from C#
  • init_seg and warning C4073 from library code?
  • jQuery: How to AJAXify WordPress Search?
  • Is there a way to save the selected text and highlight it again once the page is refreshed?
  • Sending keystrokes/mouse clicks to a Java program with Autohotkey
  • SetWindowsHookEx does not react on media keys
  • C# program and C++ DLL compiled for 32-bit system crash on 64-bit system
  • Mysql - How to search for 26 records that each begins with the letter of the alphabet?
  • Date Conversion from yyyy-mm-dd to dd-mm-yyyy
  • Declaring variable dynamically in VB.net
  • How to match http request and response using Jersey ContainerRequestFilter and ContainerResponseFilt
  • Abort upload large uploads after reading headers
  • Cannot resolve symbol 'MyApi'
  • java.lang.NoClassDefFoundError: com.parse.Parse$Configuration$Builder on below Lollipop versions
  • Different response to non-authenticated users and AJAX calls
  • What is Eclipse's Declaration View used for?
  • How to add a column to a Pandas dataframe made of arrays of the n-preceding values of another column
  • Join two tables and save into third-sql
  • Knitr HTML Loop - Some HTML output, some R output
  • Adding custom controls to a full screen movie
  • A cron job substitute?
  • json Serialization in asp
  • Hits per day in Google Big Query
  • -fvisibility=hidden not passed by compiler for Debug builds
  • Why joiner is not used after Sequence generator or Update statergy
  • how does django model after text[] in postgresql [duplicate]
  • Turn off referential integrity in Derby? is it possible?
  • How can I remove ASP.NET Designer.cs files?
  • Add sale price programmatically to product variations
  • Unable to use reactive element in my shiny app
  • Android Heatmap on canvas or ImageView
  • How do I use LINQ to get all the Items that have a particular SubItem?