code: function createQueryLinguisticDetails(compositionAlternatives, compositionStartOffset, compositionLength, queryTextPrefix, queryTextSuffix) {
                          var linguisticDetails = null;
  
                          // The linguistic alternatives we receive are only for the composition string being composed. We need to provide the linguistic alternatives
                          // in the form of the full query text with alternatives embedded.
                          var fullCompositionAlternatives = [];
                          for (var i = 0; i < compositionAlternatives.length; i++) {
                              fullCompositionAlternatives[i] = queryTextPrefix + compositionAlternatives[i] + queryTextSuffix;
                          }
  
                          if (_WinRT.Windows.ApplicationModel.Search.SearchQueryLinguisticDetails) {
                              try {
                                  linguisticDetails = new _WinRT.Windows.ApplicationModel.Search.SearchQueryLinguisticDetails(fullCompositionAlternatives, compositionStartOffset, compositionLength);
                              } catch (e) {
                                  // WP10 currently exposes SQLD API but throws on instantiation.
                              }
                          }
  
                          if (!linguisticDetails) {
                              // If we're in web compartment, create a script version of the WinRT SearchQueryLinguisticDetails object
                              linguisticDetails = {
                                  queryTextAlternatives: fullCompositionAlternatives,
                                  queryTextCompositionStart: compositionStartOffset,
                                  queryTextCompositionLength: compositionLength
                              };
                          }
                          return linguisticDetails;
                      }
docs: createFilled=false always creates an empty linguistic details object, otherwise generate it or use the cache