INNER CODE UNIT · TypeScript

getGenerationMetrics

google-marketing-solutions/feedgen · src/app.ts:236

function getGenerationMetrics(
  origTitle: string,
  genTitle: string,
  origAttributes: Set<string>,
  genAttributes: Set<string>,
  inputWords: Set<string>,
  gapAttributesAndValues: Record<string, string>,
  originalInput: { [k: string]: string }
): Record<string, string> {
  const addedAttributes = Util.getSetDifference(genAttributes, origAttributes);
  const removedAttributes = Util.getSetDifference(
    origAttributes,
    genAttributes
  );
  const newWordsAdded = new Set<string>();
  const genTitleWords = new Set<string>();
  const genTitleWordsMatcher = String(genTitle)
    .replaceAll("'s", '')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…