08-13-2018
If I see a thread with a title containing a misspelled word (e.g. the recent thread "Troubleshoting whiptail"), should I correct the misspelled word or should I leave it as it was submitted? Will changing a word in a title screw up finding "similar threads" or will correcting it make it more likely that "similar threads" will be found?
4 More Discussions You Might Find Interesting
1. News, Links, Events and Announcements
Note the new feature on UNIX.COM, many thread at the bottom of the page have a new feature:
Similiar Threads
Here is an example on one of Perderabo's posts:
https://www.unix.com/showthread.php?t=16337
Kudos to the vB folks for this built-in feature!!
Neo (0 Replies)
Discussion started by: Neo
0 Replies
2. What is on Your Mind?
Dear Everyone,
Thank you for all the great comments, feedback and patience during our recent modernization efforts at unix.com.
Now, I need to decide where to go next, as we move into the next phase.
Some of the ideas I have are:
Make the UserCP experience and all those non-public... (6 Replies)
Discussion started by: Neo
6 Replies
3. What is on Your Mind?
Hello.
I have redesigned our "similar threads" for a more "clean style" in both the desktop view and the mobile view for the forum "show thread".
The new design is a simple straight-forward use of div elements and all the legacy table elements have been removed.
The result is a "clean"... (7 Replies)
Discussion started by: Neo
7 Replies
4. What is on Your Mind?
FYI,
I have been quietly updating the man page database adding "similar threads" for man pages.
STEP 1: Full Text MySQL DB Search Matches
The first step, after creating the DB columns, was to process each of the nearly 400K man pages and do a full text mysql search, match and score... (10 Replies)
Discussion started by: Neo
10 Replies
LEARN ABOUT PHP
pspell_store_replacement
PSPELL_STORE_REPLACEMENT(3) 1 PSPELL_STORE_REPLACEMENT(3)
pspell_store_replacement - Store a replacement pair for a word
SYNOPSIS
bool pspell_store_replacement (int $dictionary_link, string $misspelled, string $correct)
DESCRIPTION
pspell_store_replacement(3) stores a replacement pair for a word, so that replacement can be returned by pspell_suggest(3) later. In order
to be able to take advantage of this function, you have to use pspell_new_personal(3) to open the dictionary. In order to permanently save
the replacement pair, you have to use pspell_config_personal(3) and pspell_config_repl(3) to set the path where to save your custom
wordlists, and then use pspell_save_wordlist(3) for the changes to be written to disk.
PARAMETERS
o $dictionary_link
- A dictionary link identifier, opened with pspell_new_personal(3)
o $misspelled
- The misspelled word.
o $correct
- The fixed spelling for the $misspelled word.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
pspell_store_replacement(3)
<?php
$pspell_config = pspell_config_create("en");
pspell_config_personal($pspell_config, "/var/dictionaries/custom.pws");
pspell_config_repl($pspell_config, "/var/dictionaries/custom.repl");
$pspell_link = pspell_new_config($pspell_config);
pspell_store_replacement($pspell_link, $misspelled, $correct);
pspell_save_wordlist($pspell_link);
?>
NOTES
Note
This function will not work unless you have pspell .11.2 and aspell .32.5 or later.
PHP Documentation Group PSPELL_STORE_REPLACEMENT(3)