Expletive ne after conjunctions (avant que ne…)

The ne explétif

In formal French, you will sometimes see ne used without pas, jamais, or any other negative word. This is the ne explétif.

It doesn't make a sentence negative. Instead, it adds a stylistic nuance of caution or anticipation of a negative event. It frequently appears after specific subjunctive conjunctions when discussing preventive measures.

Avant que (Before)

Avant que is often followed by the ne explétif to emphasize a precaution taken before a risky event happens.

We take great precautions before the virus spreads.
Nous prenons de grandes précautions avant que le virus ne se propage.
Back up your data before this flaw destroys your project.
Sauvegarde tes données avant que cette faille ne détruise ton projet.
It is necessary to restrict this network before the problem becomes serious.
Il faut restreindre ce réseau avant que le problème ne devienne grave.

De peur que (For fear that)

Use de peur que to explain that you are acting to prevent a feared outcome. It inherently expresses negative anticipation, heavily favoring the ne explétif.

You must isolate this file for fear that it might infect your computer.
Tu dois isoler ce fichier de peur qu'il n'infecte ton ordinateur.
They took preventive measures for fear that the disease might spread.
Ils ont pris des mesures préventives de peur que la maladie ne se propage.
Back up your work for fear that an error might completely erase it.
Sauvegarde ton travail de peur qu'une erreur ne l'efface totalement.

À moins que (Unless)

À moins que introduces a condition that would prevent the main action, using the ne explétif to highlight the risk or exception.

The hacker is going to bypass this shield unless we restrict access.
Le pirate va contourner ce bouclier à moins qu'on ne restreigne l'accès.
The virus is going to infect his computer unless the system finds the flaw.
Le virus va infecter son ordinateur à moins que le système ne trouve la faille.
It is a useful precaution unless the client changes his mind.
C'est une précaution utile à moins que le client ne change d'avis.