In fact, these are the only two occurrences of this exact form hakerna in the entire Hebrew Bible. These parallel constructions occur in close proximity to each other. In addition, the verb yrd is used in the first sentence of both chapters 38 and 39. Although this construction is relatively common, it nonetheless conveys a sense of continuity between the chapters. Taken together, these linguistic parallels suggest an intended interconnectedness of the two texts.
Further parallels exist beyond the realm of phraseology and vocabulary, in the area of plot.
In both deceptions, some article of clothing or personal possession of the victim is involved. With Joseph it is his tunic and with Judah it is his cord and staff. Just as Judah is mislead as to Tamar's true character because of her clothing and assumes that she is a prostitute, the brothers misapprehend Joseph's character thinking that he is not as important as his high status tunic indicates. Ultimately, Jacob recognizes the tunic, Judah recognizes his cord and staff, and it is the recognition of the goblet that condemns the brothers. Deception is always followed by recognition.