Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Apple Guide Complete / Part 1 - Designing Guide Files
Chapter 3 - Planning Your Help Content


Helping the User Search

The Look For feature provides a powerful search facility that, in combination with information you provide, allows the user to enter one or more words--even a complete sentence--and obtain a list of topics related to a given search phrase. For example, when a guide file contains an index and Look For content, the user can give Apple Guide a phrase such as "print", "printing documents", or "How do I print my documents", and receive a list of topics related to that task.

With Look For features selected in the Full Access window, the user can enter a search phrase in a search phrase entry box located in the left column of the window. After receiving the search phrase, Apple Guide searches the guide file index for one or more matching entries. (The guide file index contains entries that point to each guide file topic and is the same one you must create to appear in the left column of the Full Access screen when the user selects Index features.) If found, Apple Guide displays the associated topics in the right column of the window.

Apple Guide automatically reduces common word variations in search phrases to their root words. For example, Apple Guide reduces the word "copying" to "copy". This process is known as stemming. To further enhance the effectiveness of the Look For feature, you should provide Apple Guide with three lists: ignore, exception, and synonym. With these lists, you can control whether Apple Guide stems certain user search phrases and ensure that Apple Guide finds matches for search phrases containing terms not found in the index.

You need to create your guide file index in a way that best accommodates the use of these lists. In addition, you can also create invisible index terms. Apple Guide uses these terms to match search phrases with topics that do not appear in Apple Guide's visible index.

If you do not create your index properly or create the associated lists, your users are likely to encounter significantly more failed searches.

How Apple Guide Stems

Apple Guide stems the user's search phrases by removing suffixes from words. These suffixes include "ion", "al", "s", "ies", "ing", "ed", "ize", and double occurrences of the same letter, for example, "ll". In some cases, Apple Guide automatically adds an "e" to the end of the stemmed word. For example, Apple Guide stems "filing" by removing the "ing" but then adds an "e" to the result ("fil") to create the word "file".

Apple Guide also automatically stems punctuation for the user's search phrase. For example, "random-access memory" becomes "random access memory".

Table 3-1 shows some words that Apple Guide stemmed. You can also use Guide Maker's Test Look For utility to see how Apple Guide stems words and parses phrases.
Some words stemmed by Apple Guide
Stemmed suffixSearch wordStemmed word
ionDefinitionDefinit
alRetrievalRetriev
s PrivilegesPrivilege
iesUtilitiesUtil
ingRemovingRemov
ing, "e" added TypingType
ing, "e" not addedPastingPast
double lettersTrackballTrackbal
edSharedShare
er + ingRecoveringRecover
izeOrganizeorgan

IMPORTANT
Apple Guide uses the stemming methods described here only for guide files that specify the command <WorldScript> 0,0. By default, Apple Guide does not perform stemming for non-Roman and non-U.S. scripts. For additional information on localization, see "Designing for Localization" beginning on page 2-88.

How Apple Guide Matches Search Phrases With Topics

After Apple Guide receives a search phrase from the user, it tries to find a match by looking in the index and in the associated ignore, exception, and synonym lists. Figure 3-4 shows the actions Apple Guide typically performs after receiving a search phrase.

Figure 3-4 An Apple Guide search in response to a search phrase

Notice that Apple Guide first checks the ignore list and removes designated ignore words, if any, from the search phrase. Next, Apple Guide checks the exception list to see which words it should not stem in the resulting phrase. Apple Guide then stems other words in the phrase, if appropriate.

Now Apple Guide searches the synonym list for the phrase. If it finds a synonym, it replaces the phrase with the equivalent phrase and searches the index for a match. If Apple Guide finds a match for the entire phrase, it displays the associated topics; otherwise, it searches the synonym list for each word in the phrase and replaces each one with its index term equivalent. It then searches the index for the phrase and, if found, displays topics. If not found, it creates a list of topics for each word in the phrase, and displays the intersection of these lists.

If Apple Guide cannot find a match for one word in a multiple word search phrase, the entire search fails, and it displays a message telling the user to try again. Apple Guide's success matching multiple word search phrases depends on how effectively you use the synonym list.

For example, suppose that you have provided Apple Guide with these ignore and synonym words:
Ignore wordsSynonym words
howprint = printing
dofile = documents
I 
my 

Now suppose that the user enters the search phrase "How do I print my files?" Figure 3-5 shows how Apple Guide searches for topics to match this phrase.

Figure 3-5 A typical Look For search

For this example, Apple Guide performs the following steps:

  1. Apple Guide removes from the search phrase the four words specified in the ignore list ("how", "do", "I", and "my"). The resulting phrase is "print files".
  2. Apple Guide checks the exception list to verify which words in the phrase "print files" it should not stem. The phrase contains no exception words.
  3. Apple Guide stems the word "files" to "file". The resulting phrase is "print file".
  4. Apple Guide searches the synonym list for the entire phrase "print file" and finds no synonyms. The phrase remains "print file".
  5. Apple Guide searches the index for the phrase "print file".
  6. Apple Guide searches the synonym list to match each word in the phrase. As a result, it replaces the word "print" with "printing", and replaces the word "file" with "documents".
  7. Apple Guide searches the index for a match for the entire phrase, "printing documents", but doesn't find it.
  8. Apple Guide searches the index for each word in the phrase "printing documents" (that is, "printing" and "documents") and finds matching index terms.
  9. Apple Guide displays the intersection of these topics.

The rest of this section gives you guidelines for creating an index and the three associated lists. Apple strongly recommends that you also use the Look For feature in Guide Maker to test and develop your Look For content. For more information, see Chapter 6 in Part 2.

Creating a Guide File Index and Associated Lists

Your guide file index completes two features of the Full Access screen; it appears in the left column of the screen when Index features are selected, and Apple Guide uses it to associate user search phrases with topics when Look For features are selected. When you create a guide file index, you need to consider both these uses. For the Index feature, you should create index terms that correspond appropriately to your guide file content. For the Look For feature, you should determine the effects of Apple guide stemming and the interaction of the three associated lists--ignore, exception, and synonym--on the index terms. If you do not understand all these components, you will get unexpected or erroneous results.

The rest of this section provides guidelines for creating a guide file index, including the use of invisible index terms. It then describes each of the associated lists.

Creating a Guide File Index

To retrieve topics for the user when Look For or Index features are selected in the Full Access screen, Apple Guide uses a guide file index. A guide file index is a list of terms you create that point to the topics appearing in the right column of the Full Access window.

If you have created an index for reference documentation, you are probably familiar with common indexing conventions.You generally create an index entry for all nouns or noun phrases that name a topic, and use conjunctions and prepositions only to clarify the relationship between a main entry and subentry. For example, to create an index entry for the section "Files and Folders", you ignore the word "and" and create a separate index entry for the words "files" and "folders". Your index typically includes entries for incorrect terms with a reference to the correct index term. For example, an index can include an entry that says "site dictionary, see dictionary."

In contrast, your guide file index consists of only main index terms and no subentries, a practice that virtually eliminates the use of conjunctions and prepositions. In addition, you generally create index terms only for words that actually appear in your topics. To accommodate user search phrases containing terms that do not appear in the index, you generally create synonyms. For more information, see "Creating a Synonym List" beginning on page 3-24.

You create guide file index terms using nouns, noun phrases, and verbs that name topics. In general, use the plural form of the noun, even if it does not appear in the topic name. For example, for the topic "How do I save a memo?", use the plural form "memos" for the index term. Similarly, use the form of the verb that ends with "ing", even if it does not appear in the topic name. For example, for the topics "How do I save my files?" and "How do I open a file?", use the forms "saving" and "opening" for index terms.

Table 3-2 shows some sample topics and their associated index terms.
Examples of index terms derived from sample topics
TopicIndex terms
How do I save my document?saving, documents
How do I add a word to the dictionary?dictionary
How do I create a memo?memos
How do I edit my files?editing, documents
How do I copy my files?copying, documents
How do I set the default margins?margins
How do I set the page number prefix?page numbers
How do I set default footer text?footers
How do I set automatic page breaks?page breaks
How do I print my document?printing, documents

As you create your index, you need to answer the following questions:

If the answer to any of these questions is yes, then create a synonym for the word. (You can also use the exception list or invisible index term.) For example, consider the index term "printing". Apple Guide stems this term to "print". The term "printing" has other forms, "print" and "prints", which Apple Guide also stems to "print". To match these words to the appropriate index term, you can specify that "print" is a synonym for "printing".

Alternative words or phrases that the user might enter for "printing" include "print command", "printer", and "spool". By specifying each of these words as synonyms for the index term "printing", you can allow the user greater flexibility in entering search phrases and increase Apple Guide's ability to provide a successful match.

For complete information, see "Creating a Synonym List" beginning on page 3-24, as well as the next section.

Invisible Index Terms

When users view the guide file index in the left column of the Full Access window with Index features selected, they should see only index terms that correspond to the terms used in the guide file topics. The terms in the left column are visible index terms. To accommodate Look For search phrases that do not correspond to actual index terms, use invisible index terms. Although an invisible index term does not appear in the left column of the Full Index screen with Index selected, Apple Guide uses the term to match a search phrase with guide file topics.

You should use invisible index terms to have Apple Guide provide results that it cannot derive from the synonym list or through normal intersections of topics. For example, you should create an invisible index term to have Apple Guide

Creating an Ignore List

You should place in the ignore list words that you want Apple Guide to remove if they appear in the user search phrase. In general, these words should be ones that the user is likely to enter as a search phrase but that are inappropriate as index terms and do not warrant synonyms. The list should generally include

Note
Apple Guide automatically ignores numerals.
For example, Table 3-3 shows the ignore words for some sample guide file topics.
Example of ignore words derived from sample topics
TopicIgnore word candidates
How do I save my document?How, do, I, my
How do I add a word to the dictionary?How, do, I, a, to, the,
How do I create a memo?How, do, I, a
How do I edit my files?How, do, I, my
 
How do I set the default margins?How, do, I, set, the
How do I set the page number prefix?How, do, I, set, the
How do I set default footer text?How, do, I, set
How do I set automatic page breaks?How, do, I, set
How do I print my document?How, do, I, my

Creating an Exception List

In the exception list, you should place only words that you do not want stemmed and for which the stemmed version matches another index term. For example, assume that you specify "custom" as a visible index term and "customizing" as an invisible index term, with different topics associated with each index term. To prevent Apple Guide from stemming "customizing" to "custom", you should place "customizing" on the exception list.

You should use the exception list for no other reason. To handle unwanted effects of stemming, you generally should use the synonym list (described next). By default, Apple Guide does not use the exception list for non-Roman and non-U.S. script systems.

Creating a Synonym List

In the synonym list, you should place words that have identical meaning to index terms but that do not appear in the index. You generally use the synonym list more than the exception list or invisible index terms. It provides the most efficient method for handling unwanted effects of stemming and incorrect usage in search phrases.

You can create a synonym for regular and invisible index terms. You can also create a multiword synonym for an index term that is a compound phrase. When you do, however, the search obtains the expected result only if the user search phrase is the exact multiword synonym, with no other words.

You should use these guidelines to create a synonym:

Table 3-4 shows synonyms derived from sample topics.
Examples of synonyms derived from sample topics
TopicIndex termsSynonyms
How do I save my document?savingsave
How do I add a word to the site dictionary?dictionarysite dictionary
How do I create a memo?memosmemo
How do I edit files?editing edit
How do I set the default margins?marginsmargin
How do I set the page number prefix?page numberspage numbers
How do I set default footer text?footersfooter
How do I set automatic page breaks?page breakspage breaks
How do I print my document?printing print


Previous Book Contents Book Index Next

© Apple Computer, Inc.
12 JUL 1996