In a machine translation environment, a context-specific domain directory
must sometimes be selected to provide a proper translation in context. A
database for trigger patterns associated with specific domains is
prepared. When a resource is to be translated, appearances of the pattern
within the resource are detected. If appearance frequency for at least
one domain exceeds a threshold value, the appearance frequency for that
domain is compared to the appearance frequency for other domains. If the
appearance frequency for the one domain is found to be significantly
higher, the dictionary for that domain is selected for the translation.