# LangDetect Task Parameters

The parameters in this section customize the `LangDetect` task.

This task identifies the language of a document and writes the name of the language to a document field. By default the task rejects any document where the language cannot be detected, but you can choose to index the documents anyway.

Micro Focus recommends that you configure this task as a Post task.

To configure the task, use the `Post` parameter and specify the name of a configuration file section that contains the task settings:

    [ImportTasks]
    Post0=LangDetect:LangDetectSettings

    [LangDetectSettings]
    LanguageDetectionDirectory=./filters/datafiles/
    OutputField=DetectedLanguage
    FailIfLanguageUnknown=TRUE

© Copyright 2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm